import React, {useState} from 'react';
import {Layout, Menu, theme, Button, Modal, MenuProps, Breadcrumb, Dropdown, Space} from 'antd';
import { SettingOutlined, QuestionCircleOutlined, LogoutOutlined, RightOutlined} from '@ant-design/icons';
import '../../public/assets/left_side_nav.css';
import AdministrationIcon from '~/components/customIcon/AdministrationIcon';
import MyCoursesIcon from '~/components/customIcon/MyCoursesIcon';
import ExaminationIcon from '~/components/customIcon/ExaminationIcon';
import CommunityIcon from '~/components/customIcon/CommunityIcon';
import NotificationIcon from '~/components/customIcon/NotificationIcon';



const items2: MenuProps['items'] = [
    {
        key: 'subsd1',
        icon: <AdministrationIcon />,
        label: (<p className='py-2.5'>&nbsp; Administration</p>),
        children: [
            {
            key: '1sd',
            label: (<a href='#'>Class Schedules</a>),
            },
            {
            key: '2sd',
            label: (<a href='#'>Classmate Directory</a>),
            },
            {
            key: '3sd',
            label: (<a href='#'>Qualifications</a>),
            },
        ],
    },
    {
        key: 'subsd2',
        icon: <MyCoursesIcon />,
        label: (<p className='py-2.5'>&nbsp; My Courses</p>),
        children: [
            {
            key: '4sd',
            label: (<a href='#'>Graduate Program</a>),
            },
            {
            key: '5sd',
            label: (<a href='#'>Post-Graduate Program</a>),
            },
        ],
    },
    {
        key: 'subsd3',
        icon: <ExaminationIcon />,
        label: (<p className='py-2.5'>&nbsp; Examinations</p>),
        children: [
            {
            key: '6sd',
            label: (<a href='#'>Exam Scheduled</a>),
            },
            {
            key: '7sd',
            label: (<a href='#'>Upcoming Exam</a>),
            },
            {
            key: '8sd',
            label: (<a href='#'>Passed Exam</a>),
            },
        ],
    },
    {
        key: 'subsd4',
        icon: <CommunityIcon />,
        label: (<p className='py-2.5'>&nbsp; Community</p>),
        children: [
        {
            key: '9sd',
            label: (<a href='#'>Exam Scheduled</a>),
        },
        {
            key: '10sd',
            label: (<a href='#'>Upcoming Exam</a>),
        },
        {
            key: '11sd',
            label: (<a href='#'>Passed Exam</a>),
        },
        ],
    },
    {
        key: 'subsd5',
        icon: <NotificationIcon />,
        label: (<p className='py-2.5'>&nbsp; Notifications</p>),
        children: [
            {
            key: '12sd',
            label: (<a href='#'>Exam Scheduled</a>),
            },
            {
            key: '13sd',
            label: (<a href='#'>Upcoming Exam</a>),
            },
            {
            key: '14sd',
            label: (<a href='#'>Passed Exam</a>),
            },
        ],
    },
    // getItem('Files', '9', <FileOutlined />),
    {
        key: 'grp',
        label: '',
        type: 'group',
        style: { marginTop: '100px' },
        children: [
        {   
            key: '15sd', style: {paddingTop: '10px', paddingBottom: '10px', border: 'none'}, 
            icon: React.createElement(SettingOutlined, { style: { color: '#000' } }), 
            label: (<h2 className='text-[18px] font-[700] text-[#000]'>Settings</h2>)
        },
        {
            key: '16sd', style: {paddingTop: '10px', paddingBottom: '10px', border: 'none'},
            icon: React.createElement(QuestionCircleOutlined, { style: { color: '#000' } }),
            label: (<h2 className='text-[18px] font-[700] text-[#000]'>Help & Support</h2>)
        },
        {
            key: '17sd', style: {paddingTop: '10px', paddingBottom: '10px', border: 'none'},
            icon: React.createElement(LogoutOutlined, { style: { color: '#000' } }),
            label: (<h2 className='text-[18px] font-[700] text-[#000]'>Logout</h2>)
        },     
        ],
    },
];

const LeftSideMenu: React.FC = () => {
    return(
        <Menu className='custom-menu' mode="inline"  style={{ height: '100%', borderRight: 0, paddingTop: 30, background: 'transparent'}} items={items2} />
    )
}
export default LeftSideMenu;