diff --git a/src/components/sections/FeaturedCollectionSection.tsx b/src/components/sections/FeaturedCollectionSection.tsx new file mode 100644 index 0000000..8d15f13 --- /dev/null +++ b/src/components/sections/FeaturedCollectionSection.tsx @@ -0,0 +1,107 @@ +'use client' + +import Link from "next/link" +import { useMedusaProducts } from "@/hooks/useMedusaProducts" +import { Card, CardContent } from "@/components/ui/Card" +import Button from "@/components/ui/Button" + +const CURRENCY_SYMBOLS: Record = { + zar: "R", + usd: "$", + eur: "\u20AC", + gbp: "\u00A3", +} + +const formatPrice = (amount: number, code?: string) => { + const sym = CURRENCY_SYMBOLS[(code ?? "").toLowerCase()] ?? (code?.toUpperCase() ?? "") + return `${sym}${(amount / 100).toFixed(2)}` +} + +export default function FeaturedCollectionSection() { + const { products, isLoading, error } = useMedusaProducts(8) + + return ( + + ) +}