import { THEME } from '~/assets/global' import { formatDate } from '~/assets/util' import { IPostTeaser } from '~/server/db' import Link from 'next/link' const PostTeaser = ({ post }: { post: IPostTeaser }) => { return (

{post.title}

by  {THEME.author.url ? ( {THEME.author.name} ) : ( {THEME.author.name} )} {post.date ? ( {formatDate(post.date)} ) : null}
) } export default PostTeaser