+
todos
+
+
+
+
+ {todos.length > 0 && (
+
+ )}
+
+
+
+
+ {error}
+
+
);
};
diff --git a/src/api/todos.ts b/src/api/todos.ts
new file mode 100644
index 0000000000..cd516728bf
--- /dev/null
+++ b/src/api/todos.ts
@@ -0,0 +1,31 @@
+import { Todo } from '../types/Todo';
+import { client } from '../utils/fetchClient';
+
+export const USER_ID = 1843;
+
+// interface UpdateTodo {
+// id: Todo['id'];
+// objectData: Todo;
+// }
+
+export const getTodos = () => {
+ return client.get