import clsx from 'clsx'; import { AutomationTestingProps } from '@/types'; import './Switch.css'; import styles from './Switch.module.css'; export interface Props extends AutomationTestingProps { checked: boolean; id: string; name: string; onChange(checked: boolean, index?: number): void; index?: number; className?: string; disabled?: boolean; } export function Switch({ name, checked, id, disabled, 'data-cy': dataCy, onChange, index, className, }: Props) { return ( // eslint-disable-next-line jsx-a11y/label-has-associated-control -- accessible text is provided by the parent SwitchField label ); }