"use client" import React, { ComponentPropsWithoutRef } from "react" import ReactConfetti from "react-confetti" import { classNames } from "../../utils" import { Portal } from "../Portal" type ConfettiProps = { disabled?: boolean className?: string } & Pick, "container"> & Omit, "disabled" | "className"> export function Confetti({ container, numberOfPieces = 100, gravity = 0.2, wind = 0, recycle = true, disabled, className, ...rest }: ConfettiProps) { if (disabled) { return } return (
) }