Files
audio_splitter/web/frontend/src/stores/validationStore.ts
T

12 lines
296 B
TypeScript

import { create } from 'zustand'
interface ValidationState {
formatError: string | null
setFormatError: (error: string | null) => void
}
export const useValidationStore = create<ValidationState>((set) => ({
formatError: null,
setFormatError: (error) => set({ formatError: error }),
}))