1 | import cn from 'classnames';
|
2 | import PropTypes from 'prop-types';
|
3 | import React from 'react';
|
4 | const propTypes = {
|
5 | className: PropTypes.string,
|
6 | component: PropTypes.string
|
7 | };
|
8 |
|
9 | function ListOptionGroup({
|
10 | children,
|
11 | className,
|
12 | component = 'div'
|
13 | }) {
|
14 | let Tag = component;
|
15 | return React.createElement(Tag, {
|
16 | tabIndex: "-1",
|
17 | role: "separator",
|
18 | className: cn(className, 'rw-list-optgroup')
|
19 | }, children);
|
20 | }
|
21 |
|
22 | ListOptionGroup.propTypes = propTypes;
|
23 | export default ListOptionGroup; |
\ | No newline at end of file |