UNPKG

@metricinsights/concierge

Version:

Metric Insights Concierge Component

23 lines 846 B
import React from 'react'; export interface UIContextState { isOpen: boolean; toggleOpen: () => void; close: () => void; open: () => void; theme: 'light' | 'dark'; setTheme: (theme: 'light' | 'dark') => void; position: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'; setPosition: (position: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left') => void; inputValue: string; setInputValue: (value: string) => void; } interface UIProviderProps { children: React.ReactNode; defaultOpen?: boolean; defaultTheme?: 'light' | 'dark'; defaultPosition?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'; } export declare const UIProvider: React.FC<UIProviderProps>; export declare const useUIContext: () => UIContextState; export {}; //# sourceMappingURL=ui-context.d.ts.map