import { create } from 'zustand';
import { persist } from 'zustand/middleware';
export const usePanelWidthStore = create()(persist((set, get) => ({
    widths: {},
    setWidth: (key, width) => set((state) => ({
        widths: { ...state.widths, [key]: width },
    })),
    getWidth: (key, defaultWidth) => get().widths[key] ?? defaultWidth,
}), {
    name: 'panel-widths',
}));
//# sourceMappingURL=panelWidthStore.js.map