import React from 'react'; import { cx } from './lib/cx'; export type ToggleRefinementClassNames = { /** * Class names to apply to the root element */ root: string; /** * Class names to apply to the label element */ label: string; /** * Class names to apply to the checkbox element */ checkbox: string; /** * Class names to apply to the label text */ labelText: string; }; export type ToggleRefinementProps = Omit< React.ComponentProps<'div'>, 'onChange' > & Pick, 'checked'> & { classNames?: Partial; onChange(isChecked: boolean): void; label: string; }; export function ToggleRefinement({ classNames = {}, checked, onChange, label, ...props }: ToggleRefinementProps) { return (
); }