gab-social/app/javascript/gabsocial/components/tab_bar.js
2020-03-11 19:56:18 -04:00

22 lines
499 B
JavaScript

import TabBarItem from './tab_bar_item'
export default class TabBar extends PureComponent {
static propTypes = {
tabs: PropTypes.array,
large: PropTypes.bool,
}
render() {
const { tabs, large } = this.props
return (
<div className={[_s.default, _s.height53PX, _s.px5, _s.flexRow].join(' ')}>
{ !!tabs &&
tabs.map((tab, i) => (
<TabBarItem key={`tab-bar-item-${i}`} {...tab} large={large} />
))
}
</div>
)
}
}