);
}
/** Render a string (e.g. a QR token) as a scannable QR code. */
export function QrImage({ value, size = 180 }: { value: string; size?: number }) {
return (
);
}
/** Small colored badge for a registration / sponsor type. */
export function TypeBadge({ type }: { type: string }) {
// "service_session" -> "Service Session" (capitalize each word).
const label = type.replace(/_/g, ' ').replace(/\b\w/g, (c) => c.toUpperCase());
return {label};
}
/** A small on/off toggle switch. */
export function Toggle({
checked,
onChange,
label,
}: {
checked: boolean;
onChange: (v: boolean) => void;
label?: string;
}) {
return (
);
}