export interface SwitchProps { label: string; value: boolean; toggleAction: (event: React.ChangeEvent) => void; } export default function Switch({ label, value, toggleAction }: SwitchProps) { return (