import { BiCategoryAlt } from "react-icons/bi";
import { FaRegPenToSquare } from "react-icons/fa6";
import { FiUserCheck, FiUsers } from "react-icons/fi";
import { GrGallery, GrSchedules } from "react-icons/gr";
import { IoSettingsOutline } from "react-icons/io5";
import { LuSettings2 } from "react-icons/lu";
import { RiHome6Line, RiPriceTag3Line } from "react-icons/ri";
import { TbArrowFork } from "react-icons/tb";

// Important: Do Not Change This
export const dashboardPages = [
  {
    label: "Dashboard",
    route: "/dashboard",
    role: ["admin", "editor"],
    icon: <RiHome6Line />,
    children: [],
  },
  {
    label: "Posts",
    route: "/dashboard/posts",
    role: ["admin", "editor"],
    icon: <FaRegPenToSquare />,
    description: "Management post content.",
    children: [
      {
        label: "Posts",
        route: "/dashboard/posts",
        role: ["admin", "editor"],
        icon: <FaRegPenToSquare />,
      },
      {
        label: "Jadwal Pelatihan",
        route: "/dashboard/jadwal-pelatihan",
        role: ["admin", "editor"],
        icon: <GrSchedules />,
      },
      {
        label: "Categories",
        route: "/dashboard/categories",
        role: ["admin", "editor"],
        icon: <BiCategoryAlt />,
      },
      {
        label: "Tags",
        route: "/dashboard/tags",
        role: ["admin", "editor"],
        icon: <RiPriceTag3Line />,
      },
    ],
  },
  {
    label: "Gallery",
    route: "/dashboard/gallery",
    role: ["admin", "editor"],
    icon: <GrGallery />,
    children: [],
  },
  {
    label: "Users",
    route: "/dashboard/users",
    role: ["admin"],
    icon: <FiUsers />,
    description: "Management user account.",
    children: [
      {
        label: "Users Management",
        route: "/dashboard/users",
        role: ["admin"],
        icon: <FiUsers />,
        children: [],
      },
      // {
      //   label: "Users Online",
      //   route: "/dashboard/users-online",
      //   role: ["admin"],
      //   icon: <FiUserCheck />,
      //   children: [],
      // },
      {
        label: "Active Users",
        route: "/dashboard/users-login",
        role: ["admin"],
        icon: <FiUserCheck />,
        children: [],
      },
    ],
  },
  {
    label: "Settings",
    route: "/dashboard/settings/general",
    role: ["admin"],
    icon: <IoSettingsOutline />,
    description: "Management website settings.",
    children: [
      {
        label: "General",
        route: "/dashboard/settings/general",
        role: ["admin"],
        icon: <LuSettings2 />,
      },
      {
        label: "Join Bridge",
        route: "/dashboard/settings/join-bridge",
        role: ["admin"],
        icon: <TbArrowFork />,
      },
    ],
  },
  // API ROUTES
  {
    label: "Admin Zone API with credential validation",
    route: "/api/admin",
    role: ["admin", "editor"],
    icon: null,
    api: true,
    children: [],
  },
  {
    label: "Upload API with credential validation",
    route: "/api/upload",
    role: ["admin", "editor"],
    icon: null,
    api: true,
    children: [],
  },
];
