--- import type { BskyPost } from '../../lib/types'; import { relTime } from '../../lib/variants'; interface Props { post: BskyPost; cls?: string; } const { post: p, cls = '' } = Astro.props; const bskyUrl = `https://bsky.app/profile/${p.author.handle}/post/${p.rkey}`; --- CH
{relTime(p.createdAt)}

{p.text.length > 160 ? p.text.slice(0, 160) + '...' : p.text}

{p.likeCount > 0 ? `${p.likeCount} likes` : ''} {p.likeCount > 0 && p.replyCount > 0 ? ' \u2022 ' : ''} {p.replyCount > 0 ? `${p.replyCount} replies` : ''}