mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-22 19:39:01 -05:00
60f7103198
* revert to last working version * add updated ui components * update formbricks-com components * apply prettier formatting * update apps/web files
16 lines
413 B
TypeScript
16 lines
413 B
TypeScript
import { useWindowSize } from "react-use";
|
|
import ReactConfetti from "react-confetti";
|
|
|
|
type ConfettiProps = {
|
|
colors?: string[];
|
|
};
|
|
|
|
export const Confetti: React.FC<ConfettiProps> = ({
|
|
colors = ["#00C4B8", "#eee"],
|
|
}: {
|
|
colors?: string[];
|
|
}) => {
|
|
const { width, height } = useWindowSize();
|
|
return <ReactConfetti width={width} height={height} colors={colors} numberOfPieces={400} recycle={false} />;
|
|
};
|