1 | import React from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 |
|
4 | export default class Divider extends React.Component {
|
5 | static propTypes = {
|
6 | className: PropTypes.string,
|
7 | rootPrefixCls: PropTypes.string,
|
8 | style: PropTypes.object,
|
9 | };
|
10 |
|
11 | static defaultProps = {
|
12 |
|
13 | disabled: true,
|
14 | className: '',
|
15 | style: {},
|
16 | };
|
17 |
|
18 | render() {
|
19 | const { className, rootPrefixCls, style } = this.props;
|
20 | return (
|
21 | <li
|
22 | className={`${className} ${rootPrefixCls}-item-divider`}
|
23 | style={style}
|
24 | />
|
25 | );
|
26 | }
|
27 | }
|