Fertig
This commit is contained in:
15
components/json-ld.tsx
Normal file
15
components/json-ld.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
export function JsonLd({
|
||||
id,
|
||||
data,
|
||||
}: {
|
||||
id: string;
|
||||
data: Record<string, unknown>;
|
||||
}) {
|
||||
return (
|
||||
<script
|
||||
id={id}
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user