xylabs/sdk-react

View on GitHub
packages/render-spin-check/src/components/RenderSpinCheck.tsx

Summary

Maintainability
A
0 mins
Test Coverage
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
}