import React, {useState} from "react"; import {Button, ButtonSize, Text, TextField, View,} from "react-native-ui-lib"; import {useSignUp} from "@/hooks/firebase/useSignUp"; import {ProfileType} from "@/contexts/AuthContext"; import {StyleSheet} from "react-native"; import {AntDesign} from "@expo/vector-icons"; const SignUpPage = (props: { unsetRegister: () => any }) => { const [email, setEmail] = useState(""); const [firstName, setFirstName] = useState(""); const [lastName, setLastName] = 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, firstName, lastName}); }; return ( Get started with Kali Please enter your details.