import { View, Text, Button } from "react-native-ui-lib"; import React, { useState } from "react"; import { StyleSheet } from "react-native"; import { Entypo, Ionicons, Octicons } from "@expo/vector-icons"; import CalendarSettingsPage from "./CalendarSettingsPage"; import ChoreRewardSettings from "./ChoreRewardSettings"; import UserSettings from "./UserSettings"; import { AuthContextProvider } from "@/contexts/AuthContext"; const styles = StyleSheet.create({ mainBtn: { width: "100%", justifyContent: "flex-start", marginBottom: 20, height: 60, }, }); const pageIndex = { main: 0, user: 1, calendar: 2, chore: 3, policy: 4, }; const SettingsPage = () => { const [selectedPage, setSelectedPage] = useState(0); return ( {selectedPage == 0 && (