mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-14 01:31:05 -05:00
22 lines
465 B
React
22 lines
465 B
React
|
var classNames = require('classnames');
|
||
|
var React = require('react');
|
||
|
|
||
|
require('./subnavigation.scss');
|
||
|
|
||
|
var SubNavigation = React.createClass({
|
||
|
type: 'SubNavigation',
|
||
|
render: function () {
|
||
|
var classes = classNames(
|
||
|
'sub-nav',
|
||
|
this.props.className
|
||
|
);
|
||
|
return (
|
||
|
<div className={classes}>
|
||
|
{this.props.children}
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
module.exports = SubNavigation;
|