import React from 'react'; import { cx } from './lib/cx'; import type { UseSortByProps } from 'react-instantsearch-hooks'; export type SortByProps = Omit, 'onChange'> & Pick & Pick, 'value'> & { onChange?(value: string): void; classNames?: Partial; }; export type SortByClassNames = { /** * Class names to apply to the root element */ root: string; /** * Class names to apply to the select element */ select: string; /** * Class names to apply to the option element */ option: string; }; export function SortBy({ items, value, onChange = () => {}, classNames = {}, ...props }: SortByProps) { return (
); }