UNPKG

@automattic/social-previews

Version:

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

9 lines 612 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { __ } from '@wordpress/i18n'; import TumblrPostIcon from '../icons'; import './styles.scss'; const TumblrPostHeader = ({ user }) => (_jsxs("div", { className: "tumblr-preview__post-header", children: [_jsx("div", { className: "tumblr-preview__post-header-username", children: user?.displayName || // translators: username of a fictional Tumblr User __('anonymous-user', 'social-previews') }), _jsx(TumblrPostIcon, { name: "ellipsis" })] })); export default TumblrPostHeader; //# sourceMappingURL=index.js.map