Add TopMenu component and page specific content

This commit is contained in:
André Wahlberg
2020-11-26 19:37:44 +01:00
parent 83cdfb3959
commit 0a99562d83
17 changed files with 172 additions and 42 deletions

View File

@ -0,0 +1,23 @@
import React, { Component } from 'react';
class MenuButton extends Component {
render(label, icon, childOrderReverse) {
if (this.props.childOrderReverse) {
return (
<button>
<span>{this.props.label}</span>
<img src={this.props.icon}/>
</button>
);
} else {
return (
<button>
<img src={this.props.icon}/>
<span>{this.props.label}</span>
</button>
);
}
}
}
export default MenuButton;