"use client"; import { PRICES } from "@/lib/plan"; /* The one question sign-up asks about plans, once they are live: the free room or the trial. * Two radio cards, numbers and short labels. The prices come from lib/plan.ts so they cannot drift * from the pricing page. Health Service is not offered here — it starts as a conversation. */ export type SignupPlan = "hosted_small" | "hosted_facility"; const OPTS: { v: SignupPlan; name: string; price: string; note: string }[] = [ { v: "hosted_small", name: "Hosted Small", price: "Free", note: `Up to ${PRICES.freeStaff} staff records.` }, { v: "hosted_facility", name: "Hosted Facility", price: "60-day trial", note: `Then $${PRICES.hostedAnnual.toLocaleString("en-AU")} a year. No card now.` }, ]; export default function PlanChoice({ value, onChange }: { value: SignupPlan; onChange: (v: SignupPlan) => void }) { return (
{OPTS.map((o) => { const on = value === o.v; return ( ); })}
); }