import {create} from 'zustand'

import type {LightScenario} from '../../generated/ManagingApi'

type CustomScenarioStore = {
  setCustomScenario: (custom: LightScenario | null) => void
  scenario: LightScenario | null
}

export const useCustomScenario = create<CustomScenarioStore>((set) => ({
  scenario: null,
  setCustomScenario: (custom) => {
    set((state) => ({
      ...state,
      scenario: custom,
    }))
  },
})) 