2023-10-25 12:56:51 -04:00

20 lines
460 B
TypeScript

import { Button } from "@/components/ui/button";
import { useModal } from "@/app/_providers/modal/provider";
import RSVPModal from "@/components/Modals/RSVP";
type RSVPButtonProps = {
eventReference: string;
};
export default function RSVPButton({ eventReference }: RSVPButtonProps) {
const modal = useModal();
return (
<Button
onClick={() => modal?.show(<RSVPModal eventReference={eventReference} />)}
>
RSVP
</Button>
);
}