From 629c593d6df72a157cadbc77c98f81f041c9ef1c Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Tue, 23 Jun 2026 08:39:02 +0000 Subject: [PATCH] Deploy --- .../sections/MenuHighlightsSection.tsx | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 src/components/sections/MenuHighlightsSection.tsx diff --git a/src/components/sections/MenuHighlightsSection.tsx b/src/components/sections/MenuHighlightsSection.tsx new file mode 100644 index 0000000..1ca8c70 --- /dev/null +++ b/src/components/sections/MenuHighlightsSection.tsx @@ -0,0 +1,83 @@ +'use client' + +import { useMedusaProducts } from "@/hooks/useMedusaProducts" +import Link from "next/link" +import Image from "next/image" +import { Card, CardHeader, CardTitle, CardContent, CardFooter } from "@/components/ui/Card" +import Badge from "@/components/ui/Badge" + +export default function MenuHighlightsSection() { + const { products, isLoading, error } = useMedusaProducts(6) + + const formatPrice = (amount: number, code?: string) => { + const sym: Record = { zar: "R", usd: "$", eur: "€", gbp: "£", kes: "KSh", ngn: "₦" } + const s = sym[(code ?? "").toLowerCase()] ?? (code?.toUpperCase() ?? "") + return `${s}${(amount / 100).toFixed(2)}` + } + + return ( + + ) +} \ No newline at end of file