--- import type { AStatusUpdateRecord } from '../../lib/generated/a-status-update'; import { AtprotoBrowser } from '../../lib/atproto/atproto-browser'; import { loadConfig } from '../../lib/config/site'; const config = loadConfig(); const client = new AtprotoBrowser(); // Fetch the latest status update let latestStatus: AStatusUpdateRecord | null = null; try { const records = await client.getAllCollectionRecords(config.atproto.handle, 'a.status.update', 1); if (records.length > 0) { latestStatus = records[0].value as AStatusUpdateRecord; } } catch (error) { console.error('Failed to fetch status update:', error); } ---
{latestStatus ? (

{latestStatus.text}

) : (

No status updates available

)}