UNPKG

tsx-schema-markup

Version:

A package for adding schema markup to your tsx page

15 lines (14 loc) 629 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Review = Review; exports.AggregateRating = AggregateRating; const jsx_runtime_1 = require("react/jsx-runtime"); const structured_data_1 = require("./structured-data"); function Review(props) { const schema = Object.assign({ "@type": "Review" }, props); return (0, jsx_runtime_1.jsx)(structured_data_1.StructuredData, { thing: schema }); } function AggregateRating(props) { const schema = Object.assign({ "@type": "AggregateRating" }, props); return (0, jsx_runtime_1.jsx)(structured_data_1.StructuredData, { thing: schema }); }