import { TouchableOpacity, StyleSheet, Text, SectionList, View, Alert, Switch, Pressable, } from "react-native"; import { useState } from "react"; import { router } from "expo-router"; import { Card } from "@/components/ui/Cards"; import ScreenLayout from "@/components/ui/ScreenLayout"; import { BorderRadius, Colors, Fonts, Spacing } from "@/constants/theme"; import { useThemeColor } from "@/hooks/use-theme-color"; import { useAuth } from "@/context/AuthContext"; import { Section, SectionHeader } from "@/components/ui/Sections"; import { Ionicons, MaterialIcons } from "@expo/vector-icons"; import { Button } from "@/components/ui/Button"; export default function Settings() { const { user, logout } = useAuth(); const [allowNotifications, setAllowNotifications] = useState(false); const [allowWeeklyInsights, setAllowWeeklyInsights] = useState(false); const textColor = useThemeColor({}, "text"); const onNotificationPress = () => {}; const handleLogout = async () => { Alert.alert("Sair", "Tem certeza que quer sair?", [ { text: "Cancelar", style: "cancel" }, { text: "Sair", style: "destructive", onPress: logout, }, ]); }; const handleProfilePress = () => { router.push("/profile"); }; const handleInvisibleMode = () => {}; const handleDataExport = () => { Alert.alert("Exportar dados", "Deseja exportar seus dados?", [ { text: "Cancelar", style: "cancel" }, { text: "Exportar", style: "destructive", onPress: () => { Alert.alert( "Exportar dados", "Você receberá um e-mail com os dados exportados.", [{ text: "OK", style: "default" }], ); }, }, ]); }; return (
Dados Pessoais Nome, Email e senha
Notificações Diário as 20:00 Indicadores semanais Relatórios de progressos
Modo Invisível Exportar Meus Dados