/** Shapes lifted out of `EventListCard`. */

import { type AllEventsFiltersData } from "./AllEventFilterModal";
import type { EventRecord } from "@/features/events/eventRecord";

export interface EventCardProps {
  filters?: AllEventsFiltersData;
  searchQuery?: string;
  /** `""` for every event, or a category page's identifiers (`EVENT_CATEGORY_KEYS`). */
  event_type: string | readonly string[];
  is_homepage?: boolean;
}

/**
 * The list row this card renders.
 *
 * Was a hand-written 21-key interface that had drifted from the payload in two
 * ways the compiler now rejects: `id` was declared `string` where the resource
 * returns an integer, and the nullable label fields were all declared
 * non-null. It is an alias rather than a copy so the drift cannot recur.
 */
export type EventData = EventRecord;

/** Re-exported so existing importers keep working off one definition. */
export type { ChoiceItem } from "@/lib/choices";
