/*
 * Author: chenruilong
 * Create Time: 2022/01/18
 * Description:
 */
import React from 'react';
import RcMenu, { MenuProps } from 'rc-menu';

import MenuItem from './MenuItem';
import SubMenu from './SubMenu';

const prefixCls = 'brick-menu';
const Menu: any = (props: MenuProps) => {
  return (
    <RcMenu
      prefixCls={prefixCls}
      mode="inline"
      expandIcon={<i className={prefixCls + '-submenu-expand-icon'} />}
      {...props}
    />
  );
};

Menu.Item = MenuItem;
Menu.SubMenu = SubMenu;
Menu.Divider = RcMenu.Divider;

export default Menu;
