UNPKG

@automattic/social-previews

Version:

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

7 lines 633 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { __ } from '@wordpress/i18n'; import { DefaultAvatar } from './icons/default-avatar'; export const Sidebar = ({ profileImage, showThreadConnector }) => { return (_jsxs("div", { className: "threads-preview__sidebar", children: [_jsx("div", { className: "threads-preview__profile-image", children: profileImage ? (_jsx("img", { alt: __('Threads profile image', 'social-previews'), src: profileImage })) : (_jsx(DefaultAvatar, {})) }), showThreadConnector && _jsx("div", { className: "threads-preview__connector" })] })); }; //# sourceMappingURL=sidebar.js.map