index.tsx 495 Bytes
Newer Older
何乐's avatar
何乐 committed
1
import React from 'react';
2
import { Dropdown } from 'antd';
何乐's avatar
何乐 committed
3
import { DropDownProps } from 'antd/es/dropdown';
4 5 6
import classNames from 'classnames';
import styles from './index.less';

何乐's avatar
何乐 committed
7
export interface HeaderDropdownProps extends DropDownProps {
8 9 10
  overlayClassName?: string;
}

何乐's avatar
何乐 committed
11 12 13
const HeaderDropdown: React.FC<HeaderDropdownProps> = ({ overlayClassName: cls, ...restProps }) => (
  <Dropdown overlayClassName={classNames(styles.container, cls)} {...restProps} />
);
14

何乐's avatar
何乐 committed
15
export default HeaderDropdown;