export type CategoryId = string;

export type Category = {
  id: CategoryId;
  label: string;
};

export type Product = {
  id: string;
  name: string;
  nameEn: string;
  price: number | null;
  category: CategoryId;
  images: string[];
  description: string;
};

export type MenuSection = Category & {
  products: Product[];
};

export function formatPrice(price: number): string {
  return new Intl.NumberFormat("fa-IR").format(price);
}
