4e8b94a28c
* Componentize confetti to isolate re-renders due to window size * Clean up debug logging
8 lines
293 B
TypeScript
8 lines
293 B
TypeScript
import Confetti, { Props as ConfettiProps } from 'react-confetti'
|
|
import { useWindowSize } from 'web/hooks/use-window-size'
|
|
|
|
export function FullscreenConfetti(props: ConfettiProps) {
|
|
const { width, height } = useWindowSize()
|
|
return <Confetti {...props} width={width} height={height} />
|
|
}
|