UNPKG

tsx-schema-markup

Version:

A package for adding schema markup to your tsx page

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