/* @jsx jsx */ import { jsx } from "strict-ui" import { InstantSearch, Configure, RefinementList, ToggleRefinement, } from "react-instantsearch-dom" import algoliaConfig from "../utils/algolia-config" import { ReactNode } from "react" export default function InstantSearchProvider({ children, searchState, }: { children: ReactNode searchState?: string }): JSX.Element { return (
): Array => items.map(({ count, ...item }) => { return { ...item, count: count || 0, } }) } defaultRefinement={[`gatsby-component`, `gatsby-plugin`]} />
{children}
) }