UNPKG

@automattic/social-previews

Version:

A suite of components to generate previews for a post for both social and search engines.

15 lines 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InstagramPreviews = void 0; const tslib_1 = require("tslib"); const jsx_runtime_1 = require("react/jsx-runtime"); const i18n_1 = require("@wordpress/i18n"); const section_heading_1 = tslib_1.__importDefault(require("../shared/section-heading")); const post_preview_1 = require("./post-preview"); const InstagramPreviews = ({ headingLevel, hidePostPreview, ...props }) => { return ((0, jsx_runtime_1.jsx)("div", { className: "social-preview instagram-preview", children: !hidePostPreview && ((0, jsx_runtime_1.jsxs)("section", { className: "social-preview__section instagram-preview__section", children: [(0, jsx_runtime_1.jsx)(section_heading_1.default, { level: headingLevel, children: // translators: refers to a social post on Instagram (0, i18n_1.__)('Your post', 'social-previews') }), (0, jsx_runtime_1.jsx)("p", { className: "social-preview__section-desc", children: (0, i18n_1.__)('This is what your social post will look like on Instagram:', 'social-previews') }), (0, jsx_runtime_1.jsx)(post_preview_1.InstagramPostPreview, { ...props })] })) })); }; exports.InstagramPreviews = InstagramPreviews; //# sourceMappingURL=previews.js.map