diff options
Diffstat (limited to 'apps/web/src/stores/panel-store.ts')
| -rw-r--r-- | apps/web/src/stores/panel-store.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/web/src/stores/panel-store.ts b/apps/web/src/stores/panel-store.ts index 74ff9320..ae09c13b 100644 --- a/apps/web/src/stores/panel-store.ts +++ b/apps/web/src/stores/panel-store.ts @@ -15,7 +15,7 @@ interface PanelSizes { timeline: number; } -const PRESET_CONFIGS: Record<PanelPreset, PanelSizes> = { +export const PRESET_CONFIGS: Record<PanelPreset, PanelSizes> = { default: { toolsPanel: 25, previewPanel: 50, @@ -53,7 +53,6 @@ interface PanelState extends PanelSizes { mediaViewMode: "grid" | "list"; - // Actions setToolsPanel: (size: number) => void; setPreviewPanel: (size: number) => void; setPropertiesPanel: (size: number) => void; @@ -61,7 +60,6 @@ interface PanelState extends PanelSizes { setTimeline: (size: number) => void; setMediaViewMode: (mode: "grid" | "list") => void; - // Preset actions setActivePreset: (preset: PanelPreset) => void; resetPreset: (preset: PanelPreset) => void; getCurrentPresetSizes: () => PanelSizes; @@ -173,7 +171,7 @@ export const usePanelStore = create<PanelState>()( const defaultSizes = PRESET_CONFIGS[preset]; const customSizes = updatedPresetCustomSizes[preset] || {}; - const finalSizes = { ...defaultSizes, ...customSizes }; + const finalSizes = { ...defaultSizes, ...customSizes } as PanelSizes; set({ activePreset: preset, @@ -225,5 +223,3 @@ export const usePanelStore = create<PanelState>()( } ) ); - -export { PRESET_CONFIGS }; |
