"use client";

import { create } from "zustand";

interface PageLayoutState {
  showInspector: boolean;
  toggleInspector: () => void;
  setInspector: (visible: boolean) => void;
}

export const usePageLayoutStore = create<PageLayoutState>((set) => ({
  showInspector: false,
  toggleInspector: () =>
    set((state) => ({
      showInspector: !state.showInspector,
    })),
  setInspector: (visible) => set({ showInspector: visible }),
}));
