import React from 'react' /** The track and the knob glide with the same easing the planner's panels use. */ const EASE = 'cubic-bezier(0.32, 0.72, 0, 1)' /** * `describedBy` names the element that explains the switch, for a switch whose label alone * does not say what flipping it changes. `disabled` takes it out of the tab order and tells * assistive tech it cannot act; the caller dims it and says why. */ export default function ToggleSwitch({ on, onToggle, label, describedBy, disabled = false }: { on: boolean; onToggle: () => void; label?: string; describedBy?: string; disabled?: boolean }) { return ( ) }