import { useState } from 'react' import { RadioGroup } from '@headlessui/react' import clsx from 'clsx' import { Button } from '@/components/Button' import { Container } from '@/components/Container' import { Logomark } from '@/components/Logo' const plans = [ { name: 'Starter', featured: false, price: { Monthly: '$0', Annually: '$0' }, description: 'You’re new to investing but want to do it right. Get started for free.', button: { label: 'Get started for free', href: '/register', }, features: [ 'Commission-free trading', 'Multi-layered encryption', 'One tip every day', 'Invest up to $1,500 each month', ], logomarkClassName: 'fill-gray-300', }, { name: 'Investor', featured: false, price: { Monthly: '$7', Annually: '$70' }, description: 'You’ve been investing for a while. Invest more and grow your wealth faster.', button: { label: 'Subscribe', href: '/register', }, features: [ 'Commission-free trading', 'Multi-layered encryption', 'One tip every hour', 'Invest up to $15,000 each month', 'Basic transaction anonymization', ], logomarkClassName: 'fill-gray-500', }, { name: 'VIP', featured: true, price: { Monthly: '$199', Annually: '$1,990' }, description: 'You’ve got a huge amount of assets but it’s not enough. To the moon.', button: { label: 'Subscribe', href: '/register', }, features: [ 'Commission-free trading', 'Multi-layered encryption', 'Real-time tip notifications', 'No investment limits', 'Advanced transaction anonymization', 'Automated tax-loss harvesting', ], logomarkClassName: 'fill-cyan-500', }, ] function CheckIcon(props) { return ( ) } function Plan({ name, price, description, button, features, featured = false, activePeriod, logomarkClassName, }) { return (

{name}

{price.Monthly === price.Annually ? ( price.Monthly ) : ( <> {price.Monthly} {price.Annually} )}

{description}

) } export function Pricing() { let [activePeriod, setActivePeriod] = useState('Monthly') return (

Flat pricing, no management fees.

Whether you’re one person trying to get ahead or a big firm trying to take over the world, we’ve got a plan for you.

{['Monthly', 'Annually'].map((period) => ( {period} ))}
{plans.map((plan) => ( ))}
) }