'use client'; import { useEffect } from 'react'; import { clientApi } from '@/lib/client-api'; /** Fire-and-forget page-view beacon (feeds the "trending" list). Once per mount, never blocks rendering. */ export function ViewBeacon({ type, id }: { type: string; id: string }) { useEffect(() => { void clientApi.view(type, id); }, [type, id]); return null; }