14 lines
319 B
TypeScript
14 lines
319 B
TypeScript
import Head from 'next/head';
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
const SchemaOrg = ({ schema }: Record<string, any>) => (
|
|
<Head>
|
|
<script
|
|
type='application/ld+json'
|
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
|
|
/>
|
|
</Head>
|
|
);
|
|
|
|
export default SchemaOrg;
|