import React, { useContext } from "react"; import { Center, Link, Spinner, Text, VStack } from "native-base"; import { noop } from "lodash"; import { BasicStyledModal } from "../../../core/web3/modals"; import { WizardContext } from "../../../utils/WizardContext"; import { SegmentationRow, typeLabelsSegmentation as typeLabels } from "../components"; import { TransTitle } from "../../../core/layout"; import { Image } from "../../../core/images"; import RoboBilly from "../../../assets/images/robo-billy.png"; import { SegmentationProps } from "../wizards"; const ModalLocationDenied = () => ( {`Your location will show as "Unverified" on \n your GoodID.`}{" "} Need help? ); export const SegmentationScreen = ({ certificateSubjects }: { certificateSubjects: SegmentationProps["certificateSubjects"]; }) => { const { data } = useContext(WizardContext); if (!certificateSubjects) { return ; } return (
} type={"cta"} show={data?.segmentation?.locationPermission === false} withOverlay={"dark"} onClose={noop} withCloseButton /> {Object.entries(typeLabels).map(([key]) => ( ))}
If your Location is showing as “Unverified,” you may need to check your device settings.{" "} Learn more.
); };