import { ImageType } from "./image";

export type AvailableDates = {
    date: string;
    available: boolean
}

export interface ShowMealPackageType {
    id: number
    title: string;
    description?: string;
    price: number;
    is_icon: boolean;
    icon_value: string;
    is_variant: boolean;
}


export interface MealPackageVariantType {
    id: number
    title: string;
    description?: string;
    tag?: string;
    price: number;
    unit: number;
    is_icon: boolean;
    icon_value: string;
    available_dates: AvailableDates[]
}


export interface MealPackageType {
    id: number
    title: string;
    description?: string;
    tag?: string;
    is_icon: boolean;
    icon_value: string;
    price: number;
    is_allow_select_days: boolean;
    is_variant: boolean;
    images: ImageType[]
    available_dates: AvailableDates[]
    variants: MealPackageVariantType[]
}    
