@automattic/social-previews
Version:
A suite of components to generate previews for a post for both social and search engines.
16 lines • 984 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MastodonLinkPreview = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const actions_1 = tslib_1.__importDefault(require("./post/actions"));
const body_1 = tslib_1.__importDefault(require("./post/body"));
const card_1 = tslib_1.__importDefault(require("./post/card"));
const header_1 = tslib_1.__importDefault(require("./post/header"));
require("./styles.scss");
const MastodonLinkPreview = (props) => {
const { user } = props;
return ((0, jsx_runtime_1.jsxs)("div", { className: "mastodon-preview__post", children: [(0, jsx_runtime_1.jsx)(header_1.default, { user: user }), (0, jsx_runtime_1.jsx)(body_1.default, { ...props }), (0, jsx_runtime_1.jsx)(card_1.default, { ...props, customImage: "" }), (0, jsx_runtime_1.jsx)(actions_1.default, {})] }));
};
exports.MastodonLinkPreview = MastodonLinkPreview;
//# sourceMappingURL=link-preview.js.map