manifold/web/components/fullscreen-confetti.tsx

8 lines
293 B
TypeScript
Raw Permalink Normal View History

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} />
}