You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
551 B
JavaScript
17 lines
551 B
JavaScript
import React, {PureComponent} from "react";
|
|
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'
|
|
import * as fa from "@fortawesome/free-solid-svg-icons"
|
|
|
|
export default class Header extends PureComponent {
|
|
render() {
|
|
const style = this.props.style.header;
|
|
|
|
return <span style={style.base}>
|
|
<span style={style.title}>
|
|
<span style={style.icon}>{this.props.node.icon ||
|
|
<FontAwesomeIcon icon={this.props.terminal ? fa.faFile : fa.faFolder}/>}</span>
|
|
{this.props.node.name}
|
|
</span>
|
|
</span>
|
|
}
|
|
} |