import React from 'react'; import { View, Text, TouchableOpacity } from 'react-native'; import { router } from 'expo-router'; import { SFSymbol } from './SFSymbol'; interface HeaderProps { title: string; onSettingsPress?: () => void; } export const Header: React.FC = ({ title, onSettingsPress }) => { const handleSettingsPress = () => { if (onSettingsPress) { onSettingsPress(); } else { router.push('/settings'); } }; return ( {title} ); };