import { useState } from "react"
import ButtonMenuHeader from "../buttonMenuHeader"
import DrawerBottom from "../drawerBottom"
import { View } from "react-native"
import Styles from "@/constants/Styles"
import MenuItemRow from "../menuItemRow"
import { AntDesign, MaterialCommunityIcons, MaterialIcons } from "@expo/vector-icons"

type Props = {
   id: string | string[]
}

export default function HeaderRightProjectDetail({ id }: Props) {
   const [isVisible, setVisible] = useState(false)

   return (
      <>
         <ButtonMenuHeader onPress={() => { setVisible(true) }} />
         <DrawerBottom animation="slide" isVisible={isVisible} setVisible={setVisible} title="Menu">
            <View style={Styles.rowItemsCenter}>
               <MenuItemRow
                  icon={<AntDesign name="pluscircle" color="black" size={25} />}
                  title="Tambah Tugas"
                  onPress={() => {

                  }}
               />
               <MenuItemRow
                  icon={<MaterialCommunityIcons name="file-plus" color="black" size={25} />}
                  title="Tambah File"
                  onPress={() => {

                  }}
               />

               <MenuItemRow
                  icon={<MaterialIcons name="groups" color="black" size={25} />}
                  title="Tambah Anggota"
                  onPress={() => {
                     setVisible(false)
                     // router.push(`/discussion/member/${id}`)
                  }}
               />

            </View>
            <View style={[Styles.rowItemsCenter, Styles.mt15]}>
               <MenuItemRow
                  icon={<MaterialCommunityIcons name="pencil-outline" color="black" size={25} />}
                  title="Edit"
                  onPress={() => {
                     setVisible(false)
                     // router.push(`/discussion/edit/${id}`)
                  }}
               />
               <MenuItemRow
                  icon={<MaterialIcons name="close" color="black" size={25} />}
                  title="Batal"
                  onPress={() => {

                  }}
               />
            </View>
         </DrawerBottom>
      </>
   )
}