import clsx from 'clsx'; import { ReactElement } from 'react'; type TypeTest = { label: string; status: string, id: string }; interface Props { status: string, label: string, onChecked: (numStatus: string) => void } export const TodoItem = ({ status, label, onChecked }:Props):ReactElement => { return (
{label} onChecked(status === 'open' ? 'done' : 'open')} />
); }; export type {TypeTest};