You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

store.ts 311B

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. }))