"use client" import { Label } from "@/components/ui/label" import { Switch } from "@/components/ui/switch" interface BillingToggleProps { billingCycle: "monthly" | "yearly" setBillingCycle: (value: "monthly" | "yearly") => void } export function BillingToggle({ billingCycle, setBillingCycle }: BillingToggleProps) { return (
setBillingCycle(checked ? "yearly" : "monthly")} className="data-[state=checked]:bg-primary" />
) }