index.js 333 Bytes
Newer Older
dengxiaofeng's avatar
dengxiaofeng committed
1
import React from 'react';
dengxiaofeng's avatar
dengxiaofeng committed
2 3

import { Dropdown } from 'antd';
dengxiaofeng's avatar
dengxiaofeng committed
4
import classNames from 'classnames';
dengxiaofeng's avatar
dengxiaofeng committed
5 6

import styles from './index.less';
dengxiaofeng's avatar
dengxiaofeng committed
7 8 9

const HeaderDropdown = ({ overlayClassName: cls, ...restProps }) => (
  <Dropdown
张烨's avatar
张烨 committed
10
    overlayClassName={classNames(styles.container, cls)}
dengxiaofeng's avatar
dengxiaofeng committed
11 12 13 14 15
    {...restProps}
  />
);

export default HeaderDropdown;