import { create } from "zustand";

interface State {
	isShowError: boolean;
	setIsShowError: (isShowError: boolean) => void;

	isPlaying: boolean;
	setIsPlaying: (isPlaying: boolean) => void;
}

export const useAudioStore = create<State>((set) => ({
	isShowError: false,
	setIsShowError: (isShowError) => set({ isShowError }),
	isPlaying: false,
	setIsPlaying: (isPlaying) => set({ isPlaying }),
}));
