import { z } from 'zod'

export const teamAddValidator = z.object({
  name: z
    .string()
    .min(1, { error: 'Group name is required' })
    .max(50, { error: 'Group name must be less than 50 characters' }),
  slug: z
    .string()
    .min(1, { error: 'Group name is required' })
    .max(50, { error: 'Group name must be less than 50 characters' }),
  logo: z
    .string()
    .optional(),
})

export type TeamAddValidator = z.infer<typeof teamAddValidator>
