Add component to project
import { FilesystemItem } from "@/components/ui/filesystem-item" function FilesystemItemAnimatedDemo() { return ( <div className="p-4 h-[600px] w-[400px] overflow-y-auto"> <ul> {nodes.map((node) => ( <FilesystemItem node={node} key={node.name} animated /> ))} </ul> </div> ); } function FilesystemItemDemo() { return ( <div className="p-4 h-[600px] w-[400px] overflow-y-auto"> <ul> {nodes.map((node) => ( <FilesystemItem node={node} key={node.name} /> ))} </ul> </div> ); } type Node = { name: string; nodes?: Node[]; }; const nodes: Node[] = [ { name: 'Home', nodes: [ { name: 'Movies', nodes: [ { name: 'Action', nodes: [ { name: '2000s', nodes: [ { name: 'Gladiator.mp4' }, { name: 'The-Dark-Knight.mp4' }, ], }, { name: '2010s', nodes: [] }, ], }, { name: 'Comedy', nodes: [{ name: '2000s', nodes: [{ name: 'Superbad.mp4' }] }], }, { name: 'Drama', nodes: [ { name: '2000s', nodes: [{ name: 'American-Beauty.mp4' }] }, ], }, ], }, { name: 'Music', nodes: [ { name: 'Rock', nodes: [] }, { name: 'Classical', nodes: [] }, ], }, { name: 'Pictures', nodes: [] }, { name: 'Documents', nodes: [], }, { name: 'passwords.txt' }, ], }, ]; export { FilesystemItemAnimatedDemo, FilesystemItemDemo };