import { z, type TypeOf, string, object } from 'zod' export const AVATAR_PROVIDER = ['default', 'initials', 'gravatar', 'marble', 'upload'] as const export const AvatarProviderSchema = z.enum(AVATAR_PROVIDER) export type IAvatarProvider = TypeOf export const AvatarSchema = object({ // FIXME: shouldn't the default be 'default'? avatarProvider: string().or(AvatarProviderSchema).default(''), }) export type IAvatar = TypeOf