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

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

export default function HeaderRightDocument({ 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={<MaterialCommunityIcons name="folder-open" color="black" size={25} />}
                  title="Tambah Dokumen"
                  onPress={() => {
                     setVisible(false)
                  }}
               />

               <MenuItemRow
                  icon={<MaterialIcons name="upload-file" color="black" size={25} />}
                  title="Upload File"
                  onPress={() => {
                     setVisible(false)
                  }}
               />
            </View>
         </DrawerBottom>
      </>
   )

}