mirror of
https://github.com/Teamlinker/Teamlinker.git
synced 2025-06-03 03:00:17 +00:00
18 lines
669 B
TypeScript
18 lines
669 B
TypeScript
import type { DropDownProps } from 'antd/es/dropdown';
|
|
import { Dropdown } from 'antd';
|
|
import React from 'react';
|
|
import classNames from 'classnames';
|
|
import styles from './index.less';
|
|
|
|
export type HeaderDropdownProps = {
|
|
overlayClassName?: string;
|
|
overlay: React.ReactNode | (() => React.ReactNode) | any;
|
|
placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight' | 'bottomCenter';
|
|
} & Omit<DropDownProps, 'overlay'>;
|
|
|
|
const HeaderDropdown: React.FC<HeaderDropdownProps> = ({ overlayClassName: cls, ...restProps }) => (
|
|
<Dropdown overlayClassName={classNames(styles.container, cls)} {...restProps} />
|
|
);
|
|
|
|
export default HeaderDropdown;
|