tsx-schema-markup
Version:
A package for adding schema markup to your tsx page
20 lines (19 loc) • 809 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FAQPage = FAQPage;
exports.Question = Question;
exports.Answer = Answer;
const jsx_runtime_1 = require("react/jsx-runtime");
const structured_data_1 = require("./structured-data");
function FAQPage(props) {
const schema = Object.assign({ "@type": "FAQPage" }, 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 });
}