UNPKG

tsx-schema-markup

Version:

A package for adding schema markup to your tsx page

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