import React, { useState } from "react"; import {Checkbox, Button, View, Text, TextField} from "react-native-ui-lib"; import { useSignUp } from "@/hooks/firebase/useSignUp"; import { ProfileType } from "@/contexts/AuthContext"; const SignUpPage = (props: { unsetRegister: () => any }) => { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const [isParent, setIsParent] = useState(true); const [isChild, setIsChild] = useState(false); const [isCaregiver, setIsCaregiver] = useState(false); const [profileType, setProfileType] = useState( ProfileType.PARENT ); const { mutateAsync: signUp } = useSignUp(); const handleSignUp = async () => { await signUp({ email, password }); }; return (