@automattic/social-previews
Version:
A suite of components to generate previews for a post for both social and search engines.
24 lines (17 loc) • 574 B
text/typescript
import { MediaItem, SocialPreviewBaseProps, SocialPreviewsBaseProps } from '../types';
export type ThreadsPreviewsProps = SocialPreviewsBaseProps & {
posts: Array< ThreadsPreviewProps >;
};
export type ThreadsCardProps = Omit< SocialPreviewBaseProps, 'description' >;
export type SidebarProps = {
showThreadConnector?: boolean;
profileImage?: string;
};
export type HeaderProps = {
name?: string;
date?: Date;
};
export type MediaProps = {
media: Array< MediaItem >;
};
export type ThreadsPreviewProps = SidebarProps & HeaderProps & Partial< ThreadsCardProps >;