({ isOpen, onClose }: { isOpen: boolean; onClose: () => void })
| 16 | import { useSession } from "next-auth/react"; |
| 17 | |
| 18 | export 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected