import { useSyncExternalStore } from 'react'; import { getManifest, subscribeManifest, type Manifest } from '../lib/manifest'; /** * Public client configuration from the server's /manifest.json: the cached * copy (or defaults) at first, updated once the fresh one arrives. */ export function useManifest(): Manifest { return useSyncExternalStore(subscribeManifest, getManifest); }