import { Button } from '@/components/ui/button'; import { Card, CardContent } from '@/components/ui/card'; import { Segmented, SegmentedValue } from '@/components/ui/segmented'; import { CircleCheckBig, LogOut } from 'lucide-react'; import { useMemo, useState } from 'react'; import { PricingCard } from './pricing-card'; const pricingData = [ { title: 'Free', price: '$0', description: 'Meh, just looking', features: [ { name: 'Project', value: '1 project' }, { name: 'Storage', value: '1 Gb' }, { name: 'Team', value: '2 members' }, { name: 'Features', value: 'Basic features' }, ], buttonText: 'Current plan', buttonVariant: 'outline' as const, }, { title: 'Pro', price: '$16.00', description: 'For professional use.', features: [ { name: 'Project', value: 'Unlimited projects' }, { name: 'Storage', value: '100 Gb' }, { name: 'Team', value: 'Unlimited members' }, { name: 'Features', value: 'Basic features All advanced features' }, ], buttonText: 'Upgrade', buttonVariant: 'default' as const, isPro: true, }, { title: 'Enterprise', price: 'Customed', description: 'Get full capabilities and support for large-scale mission-critical systems.', features: [ { name: 'Project', value: 'Unlimited projects' }, { name: 'Storage', value: '100 Gb' }, { name: 'Team', value: 'Unlimited members' }, { name: 'Features', value: 'Basic features All advanced features' }, ], buttonText: 'Contact us', buttonVariant: 'secondary' as const, isEnterprise: true, }, ]; export default function Plan() { const [val, setVal] = useState('monthly'); const options = useMemo(() => { return [ { label: 'Monthly', value: 'monthly', }, { label: 'Yearly', value: 'yearly', }, ]; }, []); const handleChange = (path: SegmentedValue) => { setVal(path as string); }; const list = [ 'Full access to pro features', 'Exclusive analyze models', 'Create more teams', 'Invite more collaborators', ]; return (

Plan & balance

Balance $ 100.00
The value equals to 1,000 tokens or 10.00 GBs of storage
Upgrade to access
{list.map((x, idx) => (
{x}
))}
{pricingData.map((plan, index) => ( ))}
); }