import { Todo, UserWithTodos } from '@homeman/models.ts' export interface Props { user: UserWithTodos } export function TodoList({ user: { avatarUrl, assignedTodos, name } }: Props) { const todoItem = ({ description }: Todo) => (
  • {description}
  • ) return (
    {avatarUrl != null ? ( ) : null} {name}
    ) }