@automattic/social-previews
Version:
A suite of components to generate previews for a post for both social and search engines.
10 lines • 926 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { __ } from '@wordpress/i18n';
import SectionHeading from '../shared/section-heading';
import { InstagramPostPreview } from './post-preview';
export const InstagramPreviews = ({ headingLevel, hidePostPreview, ...props }) => {
return (_jsx("div", { className: "social-preview instagram-preview", children: !hidePostPreview && (_jsxs("section", { className: "social-preview__section instagram-preview__section", children: [_jsx(SectionHeading, { level: headingLevel, children:
// translators: refers to a social post on Instagram
__('Your post', 'social-previews') }), _jsx("p", { className: "social-preview__section-desc", children: __('This is what your social post will look like on Instagram:', 'social-previews') }), _jsx(InstagramPostPreview, { ...props })] })) }));
};
//# sourceMappingURL=previews.js.map