interface Location {
  type: string;
  coordinates: number[];
}
export interface BakeryApi {
  id: string;
  status: string;
  user_created: string;
  date_created: string;
  user_updated: null;
  date_updated: null;
  name: string;
  description: string;
  location: Location;
  town: string;
  images: Image[];
}

export interface BakeryApiResponse {
  data: BakeryApi[];
}

export interface Bakery {
  documentId: string;
  status: "published" | "draft" | "pending" | "archived";

  date: string;
  id: string;
  name: string;
  description: string;
  location: Location;
  town: string;
  images: Image[];
}

interface Image {
  id: number;
  bakeries_id: string;
  directus_files_id: string;
}
