export interface Props { title: string; description?: string; author?: { name: string; }; date: Date; comp: any; } export default function (props: Props) { const dateFormatted = Intl.DateTimeFormat("en-CA", { dateStyle: "long" }) .format(props.date); return (

{props.title}

{props.author && (

By {props.author.name} on{" "}

)}

{props.description}

{props.comp.separator()}
); }