import { router } from 'expo-router'; import { Pressable, View } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import Svg, { Path } from 'react-native-svg'; import { useCSSVariable } from 'uniwind'; import { Text } from '@/components/text'; import { useSky } from '@/lib/sky'; /** 탭 밖 화면(사주·이야기·게임 등) 머리줄: 뒤로 가기와 제목. 뒤로 갈 곳이 없으면(링크로 바로 열림) 오늘 탭으로 */ export function ScreenHeader({ title, right }: { title: string; right?: React.ReactNode }) { const { top } = useSafeAreaInsets(); const { kind } = useSky(); const ink = String(useCSSVariable('--color-ink')); const back = () => (router.canGoBack() ? router.back() : router.replace('/')); return ( {title} {right} ); }