import React from 'react'; import { cx } from './lib/cx'; export type ClearRefinementsTranslations = { /** * The label of the button */ resetButtonText: string; }; export type ClearRefinementsProps = React.ComponentProps<'div'> & Pick, 'disabled' | 'onClick'> & { translations: ClearRefinementsTranslations; classNames?: Partial; }; export type ClearRefinementsClassNames = { /** * Class names to apply to the root element */ root: string; /** * Class names to apply to the button */ button: string; /** * Class names to apply to the button when it's disabled */ disabledButton: string; }; export function ClearRefinements({ classNames = {}, disabled = false, onClick = () => {}, translations, ...props }: ClearRefinementsProps) { return (
); }