"use client"; import { SiReact } from "@icons-pack/react-simple-icons"; import { Task, TaskContent, TaskItem, TaskItemFile, TaskTrigger, } from "@/components/ai-elements/task"; import { nanoid } from "nanoid"; import type { ReactNode } from "react"; const Example = () => { const tasks: { key: string; value: ReactNode }[] = [ { key: nanoid(), value: 'Searching "app/page.tsx, components structure"' }, { key: nanoid(), value: ( Read page.tsx ), }, { key: nanoid(), value: "Scanning 52 files" }, { key: nanoid(), value: "Scanning 2 files" }, { key: nanoid(), value: ( Reading files layout.tsx ), }, ]; return (
{tasks.map((task) => ( {task.value} ))}
); }; export default Example;