import { createSplitProps } from '../../utils/create-split-props.ripple';
import type { UseSwitchProps } from './use-switch.ripple';

const splitProps = createSplitProps<UseSwitchProps>();

export function splitSwitchProps<T extends UseSwitchProps & Record<string, any>>(props: T) {
  return splitProps(props, [
    'checked',
    'defaultChecked',
    'disabled',
    'form',
    'id',
    'ids',
    'invalid',
    'label',
    'name',
    'onCheckedChange',
    'readOnly',
    'required',
    'value',
  ]);
}
