import { RadioGroup } from "@kobalte/core"; import { For, Show } from "solid-js"; type Choices = { value: string; label: string; caption: string; disabled?: boolean; }[]; // TODO: how could would it be if we could just pass the estimated fees in here? export function StyledRadioGroup(props: { value: string; choices: Choices; onValueChange: (value: string) => void; small?: boolean; accent?: "red" | "white"; vertical?: boolean; }) { return ( // TODO: rewrite this with CVA, props are bad for tailwind {(choice) => (
{choice.label}
{choice.caption}
)}
); }