/** * Todo Detail App - Detailed view of a single todo */ import React from 'react'; export function TodoDetail({ todoId }: { todoId?: number }) { const todo = { id: todoId || 1, content: 'Design homepage mockup', description: 'Create high-fidelity mockups for the new homepage design, including desktop and mobile views.', completed: false, assignees: [{ id: 1, name: 'Alice Johnson', avatar_url: '' }], due_on: '2024-01-20', created_at: '2024-01-10', comments: [ { id: 1, author: 'Bob Smith', content: 'Looking great! Can we add more white space?', created_at: '2024-01-12' }, ], }; return (

{todo.content}

Description

{todo.description}

Assignees

{todo.assignees.map(assignee => (
{assignee.name}
))}

Due Date

{todo.due_on}

Comments

{todo.comments.map(comment => (
{comment.author}
{comment.created_at}
{comment.content}
))}
); }