UNPKG

react-instantsearch-core

Version:
10 lines (9 loc) 395 B
import type { Widget } from 'instantsearch.js'; import type { IndexWidget } from 'instantsearch.js/es/widgets/index/index'; export declare function useWidget<TWidget extends Widget | IndexWidget, TProps>({ widget, parentIndex, props, shouldSsr, skipSuspense, }: { widget: TWidget; parentIndex: IndexWidget; props: TProps; shouldSsr: boolean; skipSuspense: boolean; }): void;