import * as React from 'react'; import classNames from 'classnames'; import { Divider } from 'rc-menu'; import { ConfigContext } from '../config-provider'; export interface MenuDividerProps extends React.HTMLAttributes { className?: string; prefixCls?: string; style?: React.CSSProperties; dashed?: boolean; } const MenuDivider: React.FC = (props) => { const { prefixCls: customizePrefixCls, className, dashed, ...restProps } = props; const { getPrefixCls } = React.useContext(ConfigContext); const prefixCls = getPrefixCls('menu', customizePrefixCls); const classString = classNames( { [`${prefixCls}-item-divider-dashed`]: !!dashed, }, className, ); return ; }; export default MenuDivider;