Skip to content

Commit bf28a5f

Browse files
committed
feat: add JsonLd component for structured data rendering
1 parent c9f81a7 commit bf28a5f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

components/JsonLd.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
type JsonLdProps = {
2+
json: string;
3+
};
4+
5+
export default function JsonLd({ json }: JsonLdProps) {
6+
return (
7+
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: json }} />
8+
);
9+
}
10+

0 commit comments

Comments
 (0)