import React from "react"; import type { Floor } from "../types"; import { ProductCard } from "./ProductCard"; interface ProductsSectionProps { data: Floor; basePath?: string; } export function ProductsSection({ data, basePath = "" }: ProductsSectionProps) { const heroTitle = data.hero?.title ?? data.title; const heroEyebrow = data.hero?.eyebrow; const heroDescription = data.hero?.description ?? data.hero?.subtitle; return (
{heroEyebrow && (

{heroEyebrow}

)}

{heroTitle}

{heroDescription && (

{heroDescription}

)}
{data.products.map((product) => ( ))}
); }