UNPKG

@automattic/social-previews

Version:

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

15 lines 554 B
import { TYPE_WEBSITE, TYPE_ARTICLE, LANDSCAPE_MODE, PORTRAIT_MODE } from '../constants'; import type { SocialPreviewBaseProps } from '../types'; export type ImageMode = typeof LANDSCAPE_MODE | typeof PORTRAIT_MODE; export type FacebookUser = { displayName: string; avatarUrl?: string; }; export type FacebookPreviewProps = SocialPreviewBaseProps & { user?: FacebookUser; type?: typeof TYPE_WEBSITE | typeof TYPE_ARTICLE; customText?: string; customImage?: string; imageMode?: ImageMode; }; //# sourceMappingURL=types.d.ts.map