import { AUTH_INFO } from "../../../constants/SessionStorage";
import URLInfo from "../../../constants/URLInfo";

const Menuitems = [
  {
    navlabel: true,
    subheader: 'Dashboard',
    icon: 'mdi mdi-dots-horizontal',
    href: 'Dashbord',
  },
  {
    title: 'dashboard',
    type: 'dashboard',
    icon: 'list',
    href: '/',
  },
  {
    navlabel: true,
    subheader: '유저 관리',
    icon: 'mdi mdi-dots-horizontal',
    href: 'User',
  },
  {
    title: '유저 관리',
    type: 'user',
    icon: 'user',
    href: '/member/user',
  },
  {
    title: '작가 관리',
    type: 'user',
    icon: 'edit-3',
    href: '/member/artist',
  },
  {
    navlabel: true,
    subheader: '컬렉션 관리',
    icon: 'mdi mdi-dots-horizontal',
    href: 'Collection',
  },
  {
    title: '컬렉션 관리',
    type: 'collection',
    icon: 'database',
    href: '/collection',
  },
  {
    navlabel: true,
    subheader: '시스템 설정',
    icon: 'mdi mdi-dots-horizontal',
    href: 'System',
  },
  {
    title: '시스템 설정',
    type: 'system',
    icon: 'settings',
    href: '/system',
  },
  {
    navlabel: true,
    subheader: '관리자 설정',
    icon: 'mdi mdi-dots-horizontal',
    href: 'Auth',
  },
  {
    title: '관리자 권한 설정',
    type: 'admin',
    icon: 'lock',
    href: '/admin',
  },
  {
    navlabel: true,
    subheader: '로그',
    icon: 'mdi mdi-dots-horizontal',
    href: 'Log',
  },
  {
    title: '관리자 액션 로그',
    type: 'log',
    icon: 'monitor',
    href: '/log',
  },
  {
    navlabel: true,
    subheader: 'AUTHENTICATION',
    icon: 'mdi mdi-dots-horizontal',
    href: 'Authentication',
  },
  {
    title: 'Log out',
    type: 'logout',
    icon: 'log-out',
    href: '/auth/login',
    onClick: () => {
      sessionStorage.setItem(AUTH_INFO, null);
      window.location.href = URLInfo.LOGIN;
    }
  },
];

export default Menuitems;
