/**
 * Profile group layout — provides a dedicated native Stack for the
 * /(app)/profile/* routes so that `router.back()` returns to the screen
 * that pushed us here (post detail, chat, feed tab, etc.) instead of
 * falling through to the root.
 *
 * The parent (app)/_layout.tsx uses AnimatedSlot → <Slot>, which is
 * stack-less. Nesting a <Stack> here gives profile routes proper back
 * history without affecting the outer tabs.
 */
import React from 'react';
import { Stack } from 'expo-router';

export default function ProfileLayout() {
  return (
    <Stack
      screenOptions={{
        headerShown: false,
        contentStyle: { backgroundColor: '#000000' },
        animation: 'slide_from_right',
      }}
    />
  );
}
