UNPKG

drizzle-cube

Version:

Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.

16 lines (15 loc) 670 B
import { ReactNode } from 'react'; import { FeaturesConfig, DashboardLayoutMode } from '../types'; interface CubeFeaturesContextValue { features: FeaturesConfig; dashboardModes: DashboardLayoutMode[]; updateFeatures: (newFeatures: Partial<FeaturesConfig>) => void; } interface CubeFeaturesProviderProps { features?: FeaturesConfig; dashboardModes?: DashboardLayoutMode[]; children: ReactNode; } export declare function CubeFeaturesProvider({ features: initialFeatures, dashboardModes, children }: CubeFeaturesProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useCubeFeatures(): CubeFeaturesContextValue; export {};