--- 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}`; const textLen = p.text.length; ---
SRC nate.rip TS {relTime(p.createdAt)} LEN {textLen}

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

{p.likeCount > 0 ? `0x${p.likeCount.toString(16).padStart(2, '0')} likes` : ''} {p.likeCount > 0 && p.replyCount > 0 ? ' \u2022 ' : ''} {p.replyCount > 0 ? `0x${p.replyCount.toString(16).padStart(2, '0')} rpl` : ''}