@automattic/social-previews
Version:
A suite of components to generate previews for a post for both social and search engines.
20 lines (16 loc) • 383 B
text/typescript
import type { SocialPreviewBaseProps } from '../types';
export type MastodonUser = {
displayName: string;
avatarUrl: string;
address: string;
};
export type MastodonAddressDetails = {
username: string;
instance: string;
};
export type MastodonPreviewProps = SocialPreviewBaseProps & {
user?: MastodonUser;
customText?: string;
customImage?: string;
siteName?: string;
};