import { Stack } from 'expo-router';
import { useTranslation } from 'react-i18next';

export default function AppLayout() {
  const { t } = useTranslation();

  return (
    <Stack
      screenOptions={{
        headerTitleAlign: 'center',
      }}
    >
      <Stack.Screen
        name="home"
        options={{
          // 卡片页标题按设计留空（右上角为 icon 按钮）
          title: '',
          headerShadowVisible: false,
        }}
      />
      <Stack.Screen
        name="settings"
        options={{
          title: t('settings.title'),
        }}
      />
    </Stack>
  );
}

