15 lines
334 B
TypeScript
15 lines
334 B
TypeScript
import { z } from 'zod'
|
|
|
|
export const appearanceValidator = z.object({
|
|
theme: z
|
|
.enum(['light', 'dark'], {
|
|
error: 'Please select a theme.',
|
|
}),
|
|
font: z
|
|
.enum(['inter', 'manrope', 'system'], {
|
|
error: 'Please select a font.',
|
|
}),
|
|
})
|
|
|
|
export type AppearanceValidator = z.infer<typeof appearanceValidator>
|