import { create } from 'zustand' export interface ToolState { launchOptions: string[] launchIndex: number powerPlan: number init: () => void } const useToolStore = create()((/* set */) => ({ launchOptions: ["-novid -nojoy -high -freq 120 -tickrate 128", "", ""], launchIndex: 0, powerPlan: 0, init: () => { console.log('init') }, // increasePopulation: () => set((state) => ({ bears: state.bears + 1 })), })) export default useToolStore