/* global React */
const NS = window.AlessandroMerliPortfolioDesignSystem_251cec;
const { MonoLabel, Badge, Button, ImageFrame, Divider } = NS;
function SpecItem({ label, body }) {
if (!body) return null;
return (
);
}
function ProductPage({ project, go, next }) {
const { Section } = window.AMLayout;
const p = project;
return (
{/* Header */}
{p.client} · {p.year}
{p.patent && Patent · {p.patent}}
{p.title}
{p.summary}
{/* Hero image */}
{p.heroCaption && (
{p.heroCaption}
)}
{/* Spec: Role / Brief / Process + Outcome */}
{(p.awards && p.awards.length > 0) && (
{p.awards.map((a, i) => {a})}
)}
{/* Gallery */}
{p.galleryGroups && p.galleryGroups.length > 0 && (
{p.galleryGroups.map((grp, gi) => (
{grp.label}
{grp.items.map((g, i) => (
))}
))}
)}
{p.gallery && p.gallery.length > 0 && (
Gallery
{p.gallery.map((g, i) => (
))}
)}
{/* Video */}
{p.video && (
{p.video.label || 'Motion'}
{p.video.caption && (
{p.video.caption}
)}
)}
{/* Next project */}
{next && (
)}
);
}
window.ProductPage = ProductPage;