import { WebVitalsBeacon } from '@platform-modules/perf-react';
import { sentryReporter } from '@/lib/perf/vitals-reporter';

/** Island wrapper — the reporter carries a method, which Astro island props
 *  cannot serialize; binding it client-side keeps `report` callable. */
export function WebVitalsIsland() {
  return <WebVitalsBeacon reporter={sentryReporter} />;
}
