flockstr/app/(app)/calendar/[naddr]/_components/EditCalendarButton.tsx

21 lines
486 B
TypeScript
Raw Normal View History

2023-10-28 11:07:50 -04:00
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
variant={"outline"}
onClick={() => modal?.show(<RSVPModal eventReference={eventReference} />)}
>
Edit
</Button>
);
}