import { truncateString } from "../lib/truncate.ts"; export const PostCard = function PostCard({ post }: { post: Post }) { return (
Written by {post.first_name} {post.last_name} at {post.created_at}
{truncateString(post.body, 15)}