1'use server-entry';23import './client';4import './Todos.css';5import {Dialog} from './Dialog';6import {TodoDetail} from './TodoDetail';7import {TodoCreate} from './TodoCreate';8import {TodoList} from './TodoList';910export async function Todos({id}: {id?: number}) {11 return (12 <html style={{colorScheme: 'dark light'}}>13 <head>14 <title>Todos</title>15 </head>16 <body>17 <header>18 <h1>Todos</h1>19 <Dialog trigger="+">20 <h2>Add todo</h2>21 <TodoCreate />22 </Dialog>23 </header>24 <main>25 <div className="todo-column">26 <TodoList id={id} />27 </div>28 {id != null ? <TodoDetail key={id} id={id} /> : <p>Select a todo</p>}29 </main>30 </body>31 </html>32 );33}
Findings
✓ No findings reported for this file.