UNPKG

@automattic/social-previews

Version:

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

9 lines 616 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { SandBox } from '@wordpress/components'; export const QuoteTweet = ({ tweet }) => { if (!tweet) { return null; } return (_jsxs("div", { className: "twitter-preview__quote-tweet", children: [_jsx(SandBox, { html: `<blockquote class="twitter-tweet" data-conversation="none" data-dnt="true"><a href="${tweet}"></a></blockquote>`, scripts: ['https://platform.twitter.com/widgets.js'], title: "Embedded tweet" }), _jsx("div", { className: "twitter-preview__quote-tweet-overlay" })] })); }; //# sourceMappingURL=quote-tweet.js.map