export function isPastEvent(dateIso?: string | null): boolean {
  if (!dateIso) return false;
  const date = new Date(dateIso);
  if (Number.isNaN(date.getTime())) return false;
  const now = new Date();
  return date.getTime() < now.getTime();
}
