UNPKG

@empoleon/spotlight

Version:

Command center components for react and Empoleon

16 lines (15 loc) 608 B
import { GetStylesApi } from '@empoleon/core'; import { SpotlightStore } from './spotlight.store'; import type { SpotlightRootFactory } from './SpotlightRoot'; interface SpotlightContextValue { query: string; setQuery: (query: string) => void; getStyles: GetStylesApi<SpotlightRootFactory>; store: SpotlightStore; closeOnActionTrigger: boolean | undefined; } export declare const SpotlightProvider: (props: { value: SpotlightContextValue; children: import("solid-js").JSX.Element; }) => import("solid-js").JSX.Element, useSpotlightContext: () => SpotlightContextValue; export {};