MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / BetaModal

Function BetaModal

app/src/components/BetaModal.tsx:18–65  ·  view source on GitHub ↗
({ isOpen, onClose }: { isOpen: boolean; onClose: () => void })

Source from the content-addressed store, hash-verified

16import { useSession } from "next-auth/react";
17
18export const BetaModal = ({ isOpen, onClose }: { isOpen: boolean; onClose: () => void }) => {
19 const session = useSession();
20
21 const email = session.data?.user.email ?? "";
22
23 return (
24 <Modal
25 isOpen={isOpen}
26 onClose={onClose}
27 closeOnOverlayClick={false}
28 size={{ base: "xl", md: "2xl" }}
29 >
30 <ModalOverlay />
31 <ModalContent w={1200}>
32 <ModalHeader>
33 <HStack>
34 <Icon as={BsStars} />
35 <Text>Beta-Only Feature</Text>
36 </HStack>
37 </ModalHeader>
38 <ModalBody maxW="unset">
39 <VStack spacing={8} py={4} alignItems="flex-start">
40 <Text fontSize="md">
41 This feature is currently in beta. To receive early access to beta-only features, join
42 the waitlist. You'll receive an email at <b>{email}</b> when you're approved.
43 </Text>
44 </VStack>
45 </ModalBody>
46 <ModalFooter>
47 <HStack spacing={4}>
48 <Button
49 as={Link}
50 textDecoration="none !important"
51 colorScheme="orange"
52 target="_blank"
53 href={`https://ax3nafkw0jp.typeform.com/to/ZNpYqvAc#email=${email}`}
54 >
55 Join Waitlist
56 </Button>
57 <Button colorScheme="blue" onClick={onClose}>
58 Done
59 </Button>
60 </HStack>
61 </ModalFooter>
62 </ModalContent>
63 </Modal>
64 );
65};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected