import { date } from "../lib/date.ts"; import { env } from "../lib/env.ts"; import { Paragraph } from "./typography.tsx"; import type { ComponentChildren } from "preact"; export function PostInfo({ createdAt, content, includeAuthor = false, className, children, }: { createdAt?: string; content: string; includeAuthor?: boolean; className?: string; children?: ComponentChildren; }) { return ( {includeAuthor && ( <> Roscoe Rubin-Rottenberg {" "} ·{" "} )} {createdAt && ( <> )} {children} ); }