mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-22 18:38:23 +00:00
13 lines
276 B
JavaScript
13 lines
276 B
JavaScript
class Tab extends React.Component {
|
|
render(){
|
|
return (
|
|
this.props.selectedTab == this.props.id
|
|
?
|
|
<div id={this.props.id}>
|
|
{ this.props.children }
|
|
</div>
|
|
:
|
|
''
|
|
);
|
|
}
|
|
} |