UNPKG

drizzle-cube

Version:

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

29 lines (28 loc) 1.25 kB
import { default as React } from 'react'; import { DashboardLayoutMode } from '../types'; interface FloatingEditToolbarProps { /** Whether the static edit bar is visible (toolbar hidden when true) */ isEditBarVisible: boolean; /** Position of the floating toolbar */ position: 'left' | 'right'; /** Whether currently in edit mode */ isEditMode: boolean; /** Toggle edit mode on/off */ onEditModeToggle: () => void; /** Current layout mode */ layoutMode: DashboardLayoutMode; /** Change layout mode */ onLayoutModeChange: (mode: DashboardLayoutMode) => void; /** Available layout modes */ allowedModes: DashboardLayoutMode[]; /** Whether layout mode can be changed */ canChangeLayoutMode: boolean; /** Current color palette name */ currentPalette: string; /** Change color palette */ onPaletteChange: (palette: string) => void; /** Add new portlet */ onAddPortlet: () => void; } export default function FloatingEditToolbar({ isEditBarVisible, position, isEditMode, onEditModeToggle, layoutMode, onLayoutModeChange, allowedModes, canChangeLayoutMode, currentPalette, onPaletteChange, onAddPortlet }: FloatingEditToolbarProps): React.ReactPortal | null; export {};