ohmyform-ui/components/sidemenu.tsx
Michael Schramm 8d81390c83 apply eslint
2020-06-09 11:54:50 +02:00

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 />,
},
],
},
]