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) 803 B
import { ChartType } from '../types'; import { ChartAvailabilityMap } from '../shared/chartDefaults'; interface ChartTypeSelectorProps { selectedType: ChartType; onTypeChange: (type: ChartType) => void; className?: string; /** Compact mode for narrow containers - uses 2 columns and constrains width */ compact?: boolean; /** Map of chart type availability - when provided, unavailable charts are disabled */ availability?: ChartAvailabilityMap; /** Chart types to exclude from the list (e.g., ['funnel'] to hide funnel in query mode) */ excludeTypes?: ChartType[]; } export default function ChartTypeSelector({ selectedType, onTypeChange, className, compact, availability, excludeTypes }: ChartTypeSelectorProps): import("react/jsx-runtime").JSX.Element; export {};