import { ExperimentalDynamicWidgets } from 'react-instantsearch-dom' ; export type DynamicWidgetsProps = { children : React . ReactNode ; enabled ? : boolean ; [ index ] : any ; } ; export function DynamicWidgets ( { children , enabled = true , ... props } ) { return enabled ? ( < ExperimentalDynamicWidgets { ... props } > { children } < /ExperimentalDynamicWidgets>) : (<div {...props}>{children}</div > ) ; }