import { Checkbox, CheckboxIcon, CheckboxIndicator, CheckboxLabel, } from "../ui/checkbox"; import { HStack } from "../ui/hstack"; import { CheckIcon, CloseIcon, Icon } from "../ui/icon"; import { Pressable } from "../ui/pressable"; export interface Todo { id: string; task: string; completed: boolean; } const TodoContainer = ({ todo, toggleTodo, deleteTodo, ...props }: { todo: Todo; toggleTodo: (id: string) => void; deleteTodo: (id: string) => void; }) => { return ( toggleTodo(todo.id)} size="sm" aria-label={todo.task} value={todo.task} isChecked={todo.completed} className="pl-6 py-2 flex-1" > {todo.task} deleteTodo(todo.id)}> {(state: any) => { return ( ); }} ); }; export default TodoContainer;