UNPKG

@awell-health/navi-js-react

Version:

React components and hooks for integrating Navi care flows

23 lines (22 loc) 810 B
import { ReactNode } from "react"; import type { BrandingConfig } from "@awell-health/navi-core"; import { loadNavi } from "@awell-health/navi-js"; import { NaviLoadOptions } from "@awell-health/navi-js"; type Navi = Awaited<ReturnType<typeof loadNavi>>; export interface NaviContextType { branding: BrandingConfig; initialized: boolean; loading: boolean; error: string | null; publishableKey: string; navi: Navi | null; } export interface NaviProviderProps { publishableKey: string; branding?: BrandingConfig; children: ReactNode; config?: NaviLoadOptions; } export declare function NaviProvider({ publishableKey, branding, children, config, }: NaviProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useNavi(): NaviContextType; export {};