store.ts 311 B

1234567891011
  1. import { create } from 'zustand'
  2. type DatasetStore = {
  3. showExternalApiPanel: boolean
  4. setShowExternalApiPanel: (show: boolean) => void
  5. }
  6. export const useDatasetStore = create<DatasetStore>(set => ({
  7. showExternalApiPanel: false,
  8. setShowExternalApiPanel: show => set({ showExternalApiPanel: show }),
  9. }))