import * as React from 'react' ; import classNames from 'classnames' ; import { MenuContext } from './context/MenuContext' ; import { useMeasure } from './context/PathContext' ; export interface DividerProps { className ? : string ; style ? : React . CSSProperties ; } export default function Divider ( { className , style } ) { const { prefixCls } = React . useContext ( MenuContext ) ; const measure = useMeasure ( ) ; if ( measure ) { return null ; } return ( < li className = { classNames ( `${ prefixCls } - item - divider `, className)} style={style}/>);
}
