mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 20:38:17 +00:00
13 lines
340 B
TypeScript
13 lines
340 B
TypeScript
/**
|
|
* Injects JSON-LD structured data into the page <head>.
|
|
* Usage: <JsonLd data={{ "@context": "https://schema.org", ... }} />
|
|
*/
|
|
export function JsonLd({ data }: { data: Record<string, unknown> }) {
|
|
return (
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}
|
|
/>
|
|
);
|
|
}
|