15 lines
267 B
TypeScript
15 lines
267 B
TypeScript
import React from 'react';
|
|
|
|
interface JsonLdProps {
|
|
data: Record<string, any>;
|
|
}
|
|
|
|
export function JsonLd({ data }: JsonLdProps) {
|
|
return (
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}
|
|
/>
|
|
);
|
|
}
|