UNPKG

@automattic/social-previews

Version:

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

13 lines 1.54 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { __ } from '@wordpress/i18n'; import { SectionHeading } from '../shared/section-heading'; import { BlueskyLinkPreview } from './link-preview'; import { BlueskyPostPreview } from './post-preview'; export const BlueskyPreviews = ({ headingLevel, hidePostPreview, hideLinkPreview, ...props }) => { return (_jsxs("div", { className: "social-preview bluesky-preview", children: [!hidePostPreview && (_jsxs("section", { className: "social-preview__section bluesky-preview__section", children: [_jsx(SectionHeading, { level: headingLevel, children: // translators: refers to a social post on Bluesky __('Your post', 'social-previews') }), _jsx("p", { className: "social-preview__section-desc", children: __('This is what your social post will look like on Bluesky:', 'social-previews') }), _jsx(BlueskyPostPreview, { ...props })] })), !hideLinkPreview && (_jsxs("section", { className: "social-preview__section bluesky-preview__section", children: [_jsx(SectionHeading, { level: headingLevel, children: // translators: refers to a link to a Bluesky post __('Link preview', 'social-previews') }), _jsx("p", { className: "social-preview__section-desc", children: __('This is what it will look like when someone shares the link to your WordPress post on Bluesky.', 'social-previews') }), _jsx(BlueskyLinkPreview, { ...props })] }))] })); }; //# sourceMappingURL=previews.js.map