/**
 * The shapes the event form is built around.
 *
 * They live outside the component so the field groups it is assembled from
 * can type their Formik props off `EventFormValues` instead of `any`.
 */

/** Payload the event list / detail page stashes before pushing to /event-form. */
export interface EventFormNavState {
  id?: string;
  isRepublish?: boolean;
}

export interface EventFormValues {
  title_ar: string;
  title_en: string;
  startDate: string;
  endDate: string;
  startTime: string;
  endTime: string;
  event_type: string;
  participation_type: string;
  participation_type_value_en: string;
  age: [number | null, number | null];
  gender: string;
  description_ar: string;
  description_en: string;
  location: string;
  location_url: string;
  registration_link: string;
  _interests: string[];
  /** The mandatory card image — one new file, or none to keep the saved one. */
  card_image: File[];
  event_images: File[];
  latitude: string;
  longitude: string;
  sponsors: { sponsorId: string; position: number }[];
}

export interface EventFormProps {
  autoSetTimeOnClick?: boolean; // Auto-set time fields to 12:00 on first click
}
