import { MainColor } from "@/constants/color-palet";
import { ICON_SIZE_SMALL } from "@/constants/constans-value";
import { Feather, Ionicons } from "@expo/vector-icons";
export { drawerItemsForumBeranda, drawerItemsForumComentar };
const drawerItemsForumBeranda = ({
id,
status,
}: {
id: string;
status: string;
}) => [
{
icon: (
),
label: "Laporkan diskusi",
// color: MainColor.white,
path: `/forum/${id}/report-posting`,
},
{
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 drawerItemsForumComentar = ({ id }: { id: string }) => [
{
icon: (
),
label: "Laporkan",
// color: MainColor.white,
path: `/forum/${id}/report-commentar`,
},
{
icon: (
),
label: "Hapus",
color: MainColor.red,
path: "",
},
];