Files
talk/client/coral-ui/components/TabPane.js
T
2017-07-10 17:03:06 +07:00

25 lines
474 B
JavaScript

import React from 'react';
import cn from 'classnames';
import PropTypes from 'prop-types';
function getRootClassName(className) {
return cn('talk-pane', className);
}
const TabPane = ({children, className, tabId: _a, sub: _b, ...rest}) => (
<div
{...rest}
className={getRootClassName(className)}
>
{children}
</div>
);
TabPane.propTypes = {
className: PropTypes.string,
tabId: PropTypes.string,
sub: PropTypes.bool,
};
export default TabPane;