manifold/web/components/fullscreen-confetti.tsx

9 lines
345 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()
console.log('Width: ', width, 'Height: ', height)
return <Confetti {...props} width={width} height={height} />
}