import { Switch } from '@heroui/react'; import type { ReactNode } from 'react'; type Props = { isSelected: boolean; onChange: (value: boolean) => void; label?: ReactNode; description?: ReactNode; isDisabled?: boolean; size?: 'sm' | 'md' | 'lg'; 'aria-label'?: string; }; export function AppSwitch({ isSelected, onChange, label, description, isDisabled, size, ...rest }: Props) { return ( {label && {label}} {description &&

{description}

}
); }