{todos.map((todo, idx) => {
const s = resolveStatus(todo);
return (
{idx + 1}
{todo.text}
);
})}
);
}
export function TodoIndicator({ todos }: TodoIndicatorProps) {
if (!todos.length) return null;
const completed = todos.filter((t) => resolveStatus(t) === "completed").length;
const allComplete = completed === todos.length;
const progress = Math.round((completed / todos.length) * 100);
return (