setIsEditing(true)}
+ >
+ {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}
+
+
+ {isEditing ? (
+
+ ) : (
+ <>
+
+ {title}
+
+
+
+ >
+ )}
+
+
+
+ );
+};
diff --git a/src/components/TodoItem/index.ts b/src/components/TodoItem/index.ts
new file mode 100644
index 000000000..21f4abac3
--- /dev/null
+++ b/src/components/TodoItem/index.ts
@@ -0,0 +1 @@
+export * from './TodoItem';
diff --git a/src/components/TodoList/TodoList.tsx b/src/components/TodoList/TodoList.tsx
new file mode 100644
index 000000000..6e5a490d5
--- /dev/null
+++ b/src/components/TodoList/TodoList.tsx
@@ -0,0 +1,39 @@
+import { FC } from 'react';
+
+import { Todo } from '../../types/Todo';
+
+import { TodoItem } from '../TodoItem';
+
+interface Props {
+ todos: Todo[];
+ idsForDelete: number[];
+ idsForUpdate: number[];
+ setIdsForDelete: (prevIds: (ids: number[]) => number[]) => void;
+ setIdsForUpdate: (prevIds: (ids: number[]) => number[]) => void;
+ setNewTodoData: (newTodoData: Partial