"use client"
import * as React from "react"
import {
Item,
ItemContent,
ItemDescription,
ItemTitle,
} from "@/examples/radix/ui/item"
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/examples/radix/ui/select"
const plans = [
{
name: "Starter",
description: "Perfect for individuals getting started.",
},
{
name: "Professional",
description: "Ideal for growing teams and businesses.",
},
{
name: "Enterprise",
description: "Advanced features for large organizations.",
},
]
function SelectPlanItem({ plan }: { plan: (typeof plans)[number] }) {
return (
-
{plan.name}
{plan.description}
)
}
export function SelectPlan() {
const [plan, setPlan] = React.useState(plans[0].name)
const selectedPlan = plans.find((p) => p.name === plan)
return (
)
}