12 lines
296 B
TypeScript
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 }),
|
|
}))
|