UNPKG

@automattic/social-previews

Version:

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

26 lines 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const jsx_runtime_1 = require("react/jsx-runtime"); const i18n_1 = require("@wordpress/i18n"); const icons_1 = tslib_1.__importDefault(require("../icons")); require("./styles.scss"); const FacebookPostActions = () => ((0, jsx_runtime_1.jsx)("ul", { className: "facebook-preview__post-actions", children: [ { icon: 'like', // translators: Facebook "Like" action label: (0, i18n_1.__)('Like', 'social-previews'), }, { icon: 'comment', // translators: Facebook "Comment" action label: (0, i18n_1.__)('Comment', 'social-previews'), }, { icon: 'share', // translators: Facebook "Share" action label: (0, i18n_1.__)('Share', 'social-previews'), }, ].map(({ icon, label }) => ((0, jsx_runtime_1.jsxs)("li", { children: [(0, jsx_runtime_1.jsx)(icons_1.default, { name: icon }), (0, jsx_runtime_1.jsx)("span", { children: label })] }, icon))) })); exports.default = FacebookPostActions; //# sourceMappingURL=index.js.map