classify web
This commit is contained in:
14
components/Layout/StructuredData.jsx
Normal file
14
components/Layout/StructuredData.jsx
Normal file
@@ -0,0 +1,14 @@
|
||||
const StructuredData = ({ data }) => {
|
||||
if (!data) return null;
|
||||
|
||||
return (
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: JSON.stringify(data).replace(/</g, "\\u003c"),
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default StructuredData;
|
||||
Reference in New Issue
Block a user