import ButtonBackHeader from "@/components/buttonBackHeader";
import HeaderRightProjectDetail from "@/components/project/headerProjectDetail";
import SectionFile from "@/components/sectionFile";
import SectionMember from "@/components/sectionMember";
import SectionProgress from "@/components/sectionProgress";
import SectionTanggalTugas from "@/components/sectionTanggalTugas";
import Styles from "@/constants/Styles";
import { router, Stack, useLocalSearchParams } from "expo-router";
import { SafeAreaView, ScrollView, View } from "react-native";

export default function DetailProject() {
   const { id } = useLocalSearchParams()
   return (
      <SafeAreaView>
         <Stack.Screen
            options={{
               headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
               headerTitle: 'Judul Kegiatan',
               headerTitleAlign: 'center',
               headerRight: () => <HeaderRightProjectDetail id={id} />,
            }}
         />
         <ScrollView>
            <View style={[Styles.p15, Styles.mb100]}>
               <SectionProgress text="Kemajuan Kegiatan 50%" />
               <SectionTanggalTugas category="project" />
               <SectionFile />
               <SectionMember />
            </View>
         </ScrollView>
      </SafeAreaView>
   )
}