From f715548d73bc2dbf6113e3301b41495334aa175d Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 23 Jun 2026 08:38:52 +0000 Subject: [PATCH] Deploy --- .../sections/FeaturedMenuSection.tsx | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 src/components/sections/FeaturedMenuSection.tsx diff --git a/src/components/sections/FeaturedMenuSection.tsx b/src/components/sections/FeaturedMenuSection.tsx new file mode 100644 index 0000000..c9cdfab --- /dev/null +++ b/src/components/sections/FeaturedMenuSection.tsx @@ -0,0 +1,88 @@ +'use client' + +import { useMedusaProducts } from "@/hooks/useMedusaProducts" +import { Card, CardContent, CardFooter } from "@/components/ui/Card" +import Button from "@/components/ui/Button" +import Image from "next/image" +import Link from "next/link" + +export default function FeaturedMenuSection() { + const { products = [], isLoading } = useMedusaProducts(4) + + if (isLoading) { + return ( + + ) + } + + const menuItems = products.length > 0 ? products : [ + { id: "1", title: "Patatas Bravas", description: "Crispy potatoes with spicy tomato sauce & aioli", thumbnail: "https://images.pexels.com/photos/6979280/pexels-photo-6979280.jpeg?auto=compress&cs=tinysrgb&h=350", variants: [{ prices: [{ amount: 950, currency_code: "ZAR" }] }] }, + { id: "2", title: "Gambas al Ajillo", description: "Garlic sizzled prawns in olive oil & chili", thumbnail: "https://images.pexels.com/photos/35896397/pexels-photo-35896397.jpeg?auto=compress&cs=tinysrgb&h=350", variants: [{ prices: [{ amount: 1450, currency_code: "ZAR" }] }] }, + { id: "3", title: "Crema Catalana", description: "Caramelised custard with cinnamon & citrus", thumbnail: "https://images.pexels.com/photos/6979280/pexels-photo-6979280.jpeg?auto=compress&cs=tinysrgb&h=350", variants: [{ prices: [{ amount: 850, currency_code: "ZAR" }] }] }, + { id: "4", title: "Paella Valenciana", description: "Saffron rice with chicken, rabbit & vegetables", thumbnail: "https://images.pexels.com/photos/35896397/pexels-photo-35896397.jpeg?auto=compress&cs=tinysrgb&h=350", variants: [{ prices: [{ amount: 2200, currency_code: "ZAR" }] }] }, + ] + + return ( + + ) +} \ No newline at end of file