UNPKG

tsx-schema-markup

Version:

A package for adding schema markup to your tsx page

20 lines (19 loc) 841 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Article = Article; exports.NewsArticle = NewsArticle; exports.BlogPosting = BlogPosting; const jsx_runtime_1 = require("react/jsx-runtime"); const structured_data_1 = require("./structured-data"); function Article(props) { const schema = Object.assign({ "@type": "Article" }, props); return (0, jsx_runtime_1.jsx)(structured_data_1.StructuredData, { thing: schema }); } function NewsArticle(props) { const schema = Object.assign({ "@type": "NewsArticle" }, props); return (0, jsx_runtime_1.jsx)(structured_data_1.StructuredData, { thing: schema }); } function BlogPosting(props) { const schema = Object.assign({ "@type": "BlogPosting" }, props); return (0, jsx_runtime_1.jsx)(structured_data_1.StructuredData, { thing: schema }); }