/** @jsx h */ import type { JSX } from 'preact'; import { h } from 'preact'; import Template from '../Template/Template'; export type RefinementListItemProps = { facetValueToRefine: string; handleClick: (args: { facetValueToRefine: string; isRefined: boolean; originalEvent: MouseEvent; }) => void; isRefined: boolean; subItems?: JSX.Element; templateData: Record; templateKey: string; templateProps?: Record; className: string; }; function RefinementListItem({ className, handleClick, facetValueToRefine, isRefined, templateProps, templateKey, templateData, subItems, }: RefinementListItemProps) { return (
  • { handleClick({ facetValueToRefine, isRefined, originalEvent, }); }} > {/* @MAJOR ensure conformity with InstantSearch.css specs */}