@automattic/social-previews
Version:
A suite of components to generate previews for a post for both social and search engines.
9 lines • 502 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { getTitleFromDescription } from '../helpers';
import { NextdoorPostPreview } from './post-preview';
export function NextdoorLinkPreview(props) {
return (_jsx(NextdoorPostPreview, { name: "", profileImage: "", ...props,
// Override the props that are irrelevant to link preview
description: "", media: undefined, title: props.title || getTitleFromDescription(props.description) }));
}
//# sourceMappingURL=link-preview.js.map