// apps/mobile/app/(tabs)/profile.tsx // 프로필 — 사용자 정보 + 로그아웃. @d3ro/ui-native 사용 import { View, StyleSheet, Alert, ScrollView } from 'react-native' import { MetalCard, PhosphorText, PhysicalButton, d3roNativePalette } from '@d3ro/ui-native' import { useAuth } from '../../lib/auth-context' import { supabase } from '../../lib/supabase' export default function ProfileScreen(): React.ReactElement { const { user } = useAuth() async function handleLogout(): Promise { Alert.alert('로그아웃', '정말 로그아웃하시겠습니까?', [ { text: '취소', style: 'cancel' }, { text: '로그아웃', style: 'destructive', onPress: async () => { await supabase.auth.signOut() } } ]) } return ( 이메일 {user?.email ?? '—'} USER ID {user?.id ?? '—'} void handleLogout()} /> ) } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: d3roNativePalette.bg.app }, content: { padding: 24 }, section: { marginBottom: 16 }, value: { marginTop: 6 }, logoutWrap: { marginTop: 8 } })