
import { UserRole } from "@prisma/client";
// import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
// import { faStar } from '@fortawesome/free-solid-svg-icons'; // Star icon
// import { faClipboardList } from '@fortawesome/free-solid-svg-icons'; // Clipboard icon
import { FaStar } from 'react-icons/fa'; // Import FontAwesome icons


const sidemenu = [
    {
        id: "dashboard",
        text: "Възможности",
        url: "/dash",
        roles: [UserRole.ADMIN, UserRole.USER, UserRole.POWERUSER],
        svgData:
            "M19 11H5M19 11C20.1046 11 21 11.8954 21 13V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V13C3 11.8954 3.89543 11 5 11M19 11V9C19 7.89543 18.1046 7 17 7M5 11V9C5 7.89543 5.89543 7 7 7M7 7V5C7 3.89543 7.89543 3 9 3H15C16.1046 3 17 3.89543 17 5V7M7 7H17",
    },
    {
        id: "shedule",
        text: "График",
        url: "/cart/calendar/schedule",
    },
    {
        id: "myshedule",
        text: "Моя График",
        url: "/cart/publishers/myschedule",
    },
    {
        id: "locations",
        text: "Местоположения",
        svgData: "M12 2C8.13401 2 5 5.13401 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13401 15.866 2 12 2ZM12 11.5C10.6193 11.5 9.5 10.3807 9.5 9C9.5 7.61929 10.6193 6.5 12 6.5C13.3807 6.5 14.5 7.61929 14.5 9C14.5 10.3807 13.3807 11.5 12 11.5Z", // Example SVG path for location icon
        url: "#",
        children: [], // Placeholder to be dynamically populated
        collapsable: true,
        url: "/cart/locations",
    },
    {
        id: "cart-report",
        text: "Отчет",
        url: "/cart/reports/report",
    },
    {
        id: "cart-experience",
        text: "Случки",
        url: "/cart/reports/experience",
    },
    {
        id: "guidelines",
        text: "Напътствия",
        url: "/guidelines",
    },
    {
        id: "permits",
        text: "Разрешителни",
        url: "/permits",
    },
    {
        id: "contactAll",
        text: "Участници",
        url: "/cart/publishers/contacts",
    },

    {
        id: "feedback",
        text: "Отзиви",
        url: "/feedback",
    },
    {
        id: "contactUs",
        text: "За връзка",
        url: "/contactUs",
    },
    {
        id: "admin",
        text: "Администрация",
        url: "/admin",
        roles: [UserRole.ADMIN, UserRole.POWERUSER],
        svgData:
            "M19 11H5M19 11C20.1046 11 21 11.8954 21 13V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V13C3 11.8954 3.89543 11 5 11M19 11V9C19 7.89543 18.1046 7 17 7M5 11V9C5 7.89543 5.89543 7 7 7M7 7V5C7 3.89543 7.89543 3 9 3H15C16.1046 3 17 3.89543 17 5V7M7 7H17",
        children: [
            {
                id: "cart-places",
                text: "Места",
                url: "/cart/locations",
                roles: [UserRole.ADMIN, UserRole.POWERUSER],
            },
            {
                id: "cart-publishers",
                text: "Вестители",
                url: "/cart/publishers",
                roles: [UserRole.ADMIN, UserRole.POWERUSER],
            },
            // {
            //     id: "cart-availability",
            //     text: "Достъпности",
            //     url: "/cart/availabilities",
            //     roles: [UserRole.ADMIN, UserRole.POWERUSER],
            // },
            {
                id: "cart-events",
                text: "План",
                url: "/cart/cartevents",
                roles: [UserRole.ADMIN, UserRole.POWERUSER],
            },
            {
                id: "cart-calendar",
                text: "Календар",
                url: "/cart/calendar",
                roles: [UserRole.ADMIN, UserRole.POWERUSER],
            },
            {
                id: "surveys",
                // text: "Анкети",
                // add new icon before text
                // text: "Анкети",
                text: (
                    <span>
                        <FaStar className="inline-block mr-2" />
                        Анкети
                    </span>
                ),
                url: "/cart/surveys",
            }, {
                id: "cart-reports",
                text: "Отчети",
                url: "/cart/reports/list",
                roles: [UserRole.ADMIN, UserRole.POWERUSER],
            }, {
                id: "statistics",
                text: "Статистика",
                url: "/cart/publishers/stats",
                roles: [UserRole.ADMIN, UserRole.POWERUSER],
            }, {
                id: "coverMeLogs",
                text: "Замествания",
                url: "/cart/reports/coverMe",
                roles: [UserRole.ADMIN, UserRole.POWERUSER],
            },
            {
                id: "translations",
                text: "Преводи",
                url: "/cart/translations",
                roles: [UserRole.ADMIN, UserRole.POWERUSER],
            },

        ]
    },
];

const footerMenu = [
    {
        id: "profile",
        text: "Настройки",
        url: `/cart/publishers/edit/me`,
        roles: [UserRole.ADMIN, UserRole.POWERUSER, UserRole.USER],
        svgData:
            "M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z M12 14C8.13401 14 5 17.134 5 21H19C19 17.134 15.866 14 12 14Z"
    },
    {
        id: "privacy-policy",
        text: "Политика за поверителност",
        url: "/privacy",
    },

]

export { footerMenu };
export default sidemenu;