import React from "react"; import { Link, useParams } from "react-router-dom"; import { getProduct } from "../data/products.js"; function SpecRow({ label, value }) { return (
{label} {value}
); } export default function Product() { const { slug } = useParams(); const p = getProduct(slug); if (!p) { return (

Product not found

The product you’re looking for doesn’t exist.

Back to Store
); } return (
← Back to Store

From ${p.priceFrom}

{p.category}

{p.name}

{p.tagline}

Compare on official site

Highlights

    {p.highlights.map((h, idx) => (
  • {h}
  • ))}
{p.name}
{p.gallery.map((src, idx) => (
{`${p.name}
))}

Specifications

{Object.entries(p.specs).map(([k, v]) => ( ))}

Replace these sample specs with your own data or data you’re licensed to publish.

Video

Embedded video (YouTube). Use official videos or content you have rights to.