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

export default function DetailTaskDivision() {
   const { id, detail } = useLocalSearchParams()


   return (
      <SafeAreaView>
         <Stack.Screen
            options={{
               headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
               headerTitle: 'Judul Tugas Divisi',
               headerTitleAlign: 'center',
               headerRight: () => <HeaderRightTaskDetail id={detail} />,
            }}
         />
         <ScrollView>
            <View style={[Styles.p15, Styles.mb100]}>
               <SectionProgress text="Kemajuan Kegiatan 50%" />
               <SectionTanggalTugas category="task" />
               <SectionFile />
               <SectionMember />
            </View>
         </ScrollView>
      </SafeAreaView>
   )
}