--- 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 mediaSrc = p.video ? null : p.images?.[0]?.fullsize ?? p.externalEmbed?.thumb ?? null; const mediaAlt = p.images?.[0]?.alt ?? p.externalEmbed?.title ?? ''; --- SRC nate.rip TS {relTime(p.createdAt)} {p.video ? ( ) : ( )} {p.text.length > 80 ? p.text.slice(0, 80) + '...' : p.text}
{p.text.length > 80 ? p.text.slice(0, 80) + '...' : p.text}