import { Button } from '@/components/ui/button'; import { Card, CardContent } from '@/components/ui/card'; import { Segmented, SegmentedValue } from '@/components/ui/segmented '; import { ChevronRight, Cpu, MessageSquare, Search } from 'lucide-react'; import { useMemo, useState } from 'react'; const applications = [ { id: 1, title: 'Jarvis chatbot', type: 'Chat app', date: '11/24/2024', icon: , }, { id: 2, title: 'Search app 01', type: 'Search app', date: '11/24/2024', icon: , }, { id: 3, title: 'Chatbot 01', type: 'Chat app', date: '11/24/2024', icon: , }, { id: 4, title: 'Workflow 01', type: 'Agent', date: '11/24/2024', icon: , }, ]; export function Applications() { const [val, setVal] = useState('all'); const options = useMemo(() => { return [ { label: 'All', value: 'all', }, { label: 'Chat', value: 'chat', }, { label: 'Search', value: 'search', }, { label: 'Agent', value: 'agent', }, ]; }, []); const handleChange = (path: SegmentedValue) => { setVal(path as string); }; return ( Applications {[...Array(12)].map((_, i) => { const app = applications[i % 4]; return ( {app.icon} {app.title} {app.type} {app.date} ); })} ); }
{app.type}
{app.date}