import type { Boat } from './boat';

export type StatusTypes = 'tentative' | 'confirmed' | 'pending' | undefined;
export interface Reservation {
  id: string;
  user: string;
  start: Date;
  end: Date;
  resource: Boat;
  reservationDate: Date;
  status?: StatusTypes;
}
// 24 hrs in advance only 2 weekday, and 1 weekend slot
// Within 24 hrs, any available slot
/* TODO: Figure out how best to separate out where qcalendar bits should be.
   e.g.: Should there be any qcalendar stuff in this store?  Or should we have just JS Date
   objects in here? */

export type timeTuple = [start: string, end: string];
export interface Timeblock {
  id: string;
  boatId: string;
  start: string;
  end: string;
  selected?: false;
}

export interface TimeBlockTemplate {
  id: string;
  name: string;
  blocks: timeTuple[];
}
