diff --git a/src/components/sections/ShippingAndReturnsSection.tsx b/src/components/sections/ShippingAndReturnsSection.tsx new file mode 100644 index 0000000..fb01f03 --- /dev/null +++ b/src/components/sections/ShippingAndReturnsSection.tsx @@ -0,0 +1,51 @@ +'use client' + +import { useVulaContent } from "@/hooks/useVulaContent" +import Badge from "@/components/ui/Badge" +import { Package, RotateCcw, Truck } from 'lucide-react' + +export default function ShippingAndReturnsSection() { + const { items, loading } = useVulaContent("policies") + + if (loading) { + return ( +
+
+
+ ) + } + + if (items.length === 0) return null + + return ( +
+
+

Delivery & Returns

+
+ {items.map((item) => { + const d = item.data as { title?: string; body?: string } + const iconMap: Record = { + "Shipping": , + "Returns": , + "Packaging": + } + const icon = iconMap[d.title || ""] || + return ( +
+
+ {icon} + + {d.title || "Policy"} + +
+

+ {d.body || "Transparent policy details from our team."} +

+
+ ) + })} +
+
+
+ ) +} \ No newline at end of file