'use client'

import { Toggle } from './ui/Toggle.js'

export interface EnabledSwitchProps {
  checked: boolean
  onCheckedChange: (checked: boolean) => void
  disabled?: boolean
  /** Accessible label — required for icon-only switches. */
  'aria-label': string
}

/** Enable/disable toggle — design-system track + success green when on. */
export function EnabledSwitch(props: EnabledSwitchProps) {
  return <Toggle {...props} variant="enabled" />
}
