// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; import {useState} from 'react'; import {SelectableCard} from '@astryxdesign/core/SelectableCard'; import {Stack} from '@astryxdesign/core/Layout'; import {Text, Heading} from '@astryxdesign/core/Text'; const plans = [ {id: 'basic', name: 'Basic', price: '$9/mo', desc: 'For individuals'}, {id: 'pro', name: 'Pro', price: '$29/mo', desc: 'For small teams'}, { id: 'enterprise', name: 'Enterprise', price: '$99/mo', desc: 'For organizations', }, ]; export default function SelectableCardShowcase() { const [selected, setSelected] = useState('pro'); return ( {plans.map(plan => ( setSelected(plan.id)} width={180}> {plan.name} {plan.price} {plan.desc} ))} ); }