mirror of
https://github.com/wassname/talk.git
synced 2026-08-10 12:41:02 +08:00
25 lines
474 B
JavaScript
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;
|