@xyo-network/react-shared
Version:
Common React library for all XYO projects that use React
10 lines • 596 B
TypeScript
import type { ContextExProviderProps } from '@xylabs/react-shared';
import type { Context, PropsWithChildren } from 'react';
import type { ResolvedDivinerState } from './State.ts';
export interface DivinerProviderProps<D> extends ContextExProviderProps, PropsWithChildren {
context: Context<ResolvedDivinerState<D>>;
diviner?: D;
}
/** Exposes a resolved diviner */
export declare const ResolvedDivinerProvider: <D>({ diviner: divinerProp, required, children, context: Context, }: DivinerProviderProps<D>) => import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=Provider.d.ts.map