"use client"; import React from "react"; import confetti from "canvas-confetti"; import { Star } from "lucide-react"; export default function SupporterMessage({ tier }: { tier: string }) { return (
{ // Get the bounding box of the element const rect = ( e.target as HTMLElement ).getBoundingClientRect(); // Trigger confetti centered on the word "Pangolin" confetti({ particleCount: 100, spread: 70, origin: { x: (rect.left + rect.width / 2) / window.innerWidth, y: rect.top / window.innerHeight }, colors: ["#FFA500", "#FF4500", "#FFD700"] }); }} > Pangolin
Thank you for supporting Pangolin as a {tier}!
); }