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 } from "@expo/vector-icons"
import ModalFilter from "../modalFilter"

export default function HeaderRightDivisionList() {
   const [isVisible, setVisible] = useState(false)
   const [isFilter, setFilter] = 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 Kegiatan"
                  onPress={() => {
                     setVisible(false)
                     // router.push('/project/create')
                  }}
               />
               <MenuItemRow
                  icon={<AntDesign name="filter" color="black" size={25} />}
                  title="Filter"
                  onPress={() => {
                     setVisible(false)
                     setFilter(true)
                  }}
               />
               <MenuItemRow
                  icon={<MaterialCommunityIcons name="chart-bar" color="black" size={25} />}
                  title="Laporan"
                  onPress={() => {
                     setVisible(false)
                     // router.push('/project/create')
                  }}
               />
            </View>
         </DrawerBottom>
         <ModalFilter close={() => { setFilter(false) }} open={isFilter} page="division" />
      </>
   )
}