mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
55 lines
992 B
TypeScript
55 lines
992 B
TypeScript
import { HomeOutlined, MessageOutlined, TeamOutlined } from '@ant-design/icons'
|
|
import { UserOutlined } from '@ant-design/icons/lib'
|
|
import React from 'react'
|
|
|
|
export interface SideMenuElement {
|
|
items?: SideMenuElement[]
|
|
|
|
key: string
|
|
name: string
|
|
group?: boolean
|
|
href?: string
|
|
icon?: JSX.Element
|
|
}
|
|
|
|
export const sideMenu: SideMenuElement[] = [
|
|
{
|
|
key: 'home',
|
|
name: 'Home',
|
|
href: '/admin',
|
|
icon: <HomeOutlined />,
|
|
},
|
|
{
|
|
key: 'profile',
|
|
name: 'Profile',
|
|
href: '/admin/profile',
|
|
icon: <UserOutlined />,
|
|
},
|
|
{
|
|
key: 'public',
|
|
name: 'Forms',
|
|
group: true,
|
|
items: [
|
|
{
|
|
key: 'forms',
|
|
name: 'Forms',
|
|
href: '/admin/forms',
|
|
icon: <MessageOutlined />,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 'administration',
|
|
name: 'Administration',
|
|
group: true,
|
|
items: [
|
|
{
|
|
key: 'users',
|
|
name: 'Users',
|
|
href: '/admin/users',
|
|
icon: <TeamOutlined />,
|
|
},
|
|
],
|
|
},
|
|
]
|