Files
unicorn-utterances/build-scripts/social-previews/base.ts
2023-04-09 16:30:47 -04:00

20 lines
413 B
TypeScript

import { ExtendedPostInfo } from "types/index";
import { FunctionComponent } from "preact";
export type ComponentProps = {
post: ExtendedPostInfo;
postHtml: string;
height: number;
width: number;
authorImageMap: Record<string, string>;
};
export type Layout = {
name: string;
css: string;
Component: FunctionComponent<ComponentProps>;
};
export const PAGE_WIDTH = 1280;
export const PAGE_HEIGHT = 640;