import { Todo, UserWithTodos } from '@homeman/models.ts' import { Button } from '@homeman/components/Button.tsx' export interface Props { user: UserWithTodos } export function TodoList( { user: { avatarUrl, assignedTodos, name, color } }: Props, ) { const todoItem = ( { className, description, hideDone }: Pick & { className?: string hideDone?: boolean }, ) => (
  • {description} {hideDone ? '' : }
  • ) return (
    {name}
    ) }