import { useTranslation } from 'react-i18next'; import { Todo } from './todo'; import { useTodoStore } from '@/stores/todo'; import styles from './todos.module.css'; export function Todos() { const { t } = useTranslation(); const todos = useTodoStore(state => state.todos); const doneCount = useTodoStore(state => state.doneCount()); return (

{t('modals.todo.your-todos-label')}

{doneCount} / {todos.length}

{todos.length > 0 ? ( <> {todos.map(todo => ( ))} ) : (

{t('modals.todo.empty')}

)}
); }