import { MainColor } from "@/constants/color-palet"; import { ICON_SIZE_SMALL } from "@/constants/constans-value"; import { Feather, Ionicons } from "@expo/vector-icons"; export { drawerItemsForumBerandaForAuthor, drawerItemsForumComentarForAuthor, drawerItemsForumBerandaForNonAuthor, drawerItemsForumComentarForNonAuthor, }; const drawerItemsForumBerandaForAuthor = ({ id, status, }: { id: string; status: string; }) => [ { icon: ( ), label: "Edit posting", path: `/forum/${id}/edit`, }, { icon: status === "Open" ? ( ) : ( ), label: status === "Open" ? "Tutup forum" : "Buka forum", path: "", color: status === "Open" ? MainColor.orange : MainColor.green, }, { icon: ( ), label: "Hapus", path: "", color: MainColor.red, }, ]; const drawerItemsForumBerandaForNonAuthor = ({ id }: { id: string }) => [ { icon: ( ), label: "Laporkan diskusi", // color: MainColor.white, path: `/forum/${id}/report-posting`, }, ]; const drawerItemsForumComentarForAuthor = ({ id }: { id: string }) => [ { icon: ( ), label: "Hapus", color: MainColor.red, path: "", }, ]; const drawerItemsForumComentarForNonAuthor = ({ id }: { id: string }) => [ { icon: ( ), label: "Laporkan", // color: MainColor.white, path: `/forum/${id}/report-commentar`, }, ];