'use client'; import { useEffect } from 'react'; import { clientApi } from '@/lib/client-api'; /** Fire-and-forget page-view beacon (POST /views { path }) once per entity page mount. Renders nothing. */ export function ViewBeacon({ path }: { path: string }) { useEffect(() => { const t = setTimeout(() => void clientApi.view(path), 800); return () => clearTimeout(t); }, [path]); return null; }