import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import ProfilScreen from "./screens/AksesWarga/ProfilScreen";
// Pastikan StatusPengirimanScreen sudah diimpor jika kamu ingin menggunakannya
import StatusPengirimanScreen from "./screens/ProfilWarga/StatusPengiriman/StatusPengirimanScreen";
import Donasi from "./screens/ProfilWarga/DonasiWarga/Donasi";

const Stack = createStackNavigator();

function ProfilScreenNavigator() {
  return (
    <Stack.Navigator>
      {/* Layar Utama Profile */}
      <Stack.Screen
        name="ProfilScreen"
        component={ProfilScreen}
        options={{ headerShown: false }}
      />

      {/* Layar-Layar Detail di dalam Profile */}
      <Stack.Screen
        name="StatusPengirimanScreen"
        component={StatusPengirimanScreen}
        options={{ title: "Status Penukaran Koin" }}
      />
      <Stack.Screen
        name="Donasi"
        component={Donasi}
        options={{ title: "Donasi" }}
      />
    </Stack.Navigator>
  );
}

export default ProfilScreenNavigator;
