'use client'; interface ToggleProps { checked: boolean; onChange: (next: boolean) => void; label: string; description?: string; disabled?: boolean; /** Identifier so the input + label can pair via `htmlFor`. */ id: string; } /** * Settings toggle row — label + optional sub-line + switch on the right. * Visual style ported from the extension's `.aturi-switch`. */ export default function Toggle({ checked, onChange, label, description, disabled, id, }: ToggleProps) { return (
onChange(e.target.checked)} aria-label={label} />
); }