/**
 * JSON-LD structured data. Payload is server-built from the catalog and
 * `<`-escaped, so no markup can break out of the script tag. Never include
 * invented ratings, reviews or counts.
 */
export function JsonLd({ data }: { data: unknown }) {
  const json = JSON.stringify(data).replace(/</g, "\\u003c");
  return (
    <script
      type="application/ld+json"
      dangerouslySetInnerHTML={{ __html: json }}
    />
  );
}
