packages/render-spin-check/src/components/RenderSpinCheck.tsx
import type { RenderSpinCheckBounce, RenderSpinCheckConfig } from '../hooks/index.ts'
import { useRenderSpinCheck } from '../hooks/index.ts'
export type RenderSpinCheckProps = {
bounce: RenderSpinCheckBounce
} & RenderSpinCheckConfig
export const RenderSpinCheck: React.FC<RenderSpinCheckProps> = ({
minSamples = 20, bounce, maxRate = 1000, noThrow = false, reportOnce,
}) => {
useRenderSpinCheck(bounce, {
maxRate, minSamples, noThrow, reportOnce,
})
return null
}