import { Post } from "../types/index.ts"; import { convertUtc } from "../lib/convertUtc.ts"; export const PostHeader = function PostHeader({ post }: PostHeaderOpts) { return (

{post.title}

by {post.first_name} {post.last_name} posted on{" "} {convertUtc(post.created_at)}

); }; export type PostHeaderOpts = { post: Post; };