24 lines
448 B
JavaScript
24 lines
448 B
JavaScript
import React from 'react';
|
|
import {compose} from 'redux';
|
|
|
|
import contempo from 'contempo';
|
|
|
|
const decorate = compose(
|
|
contempo(require('./tab.scss'))
|
|
);
|
|
|
|
function Tab({
|
|
basename,
|
|
icon,
|
|
path
|
|
}) {
|
|
return <div className="tab">
|
|
<span className="icon">{icon}</span>
|
|
<span className="basename">{basename}</span>
|
|
<span className="path">{path}</span>
|
|
<span className="close">•</span>
|
|
</div>;
|
|
}
|
|
|
|
export default decorate(Tab);
|