import React from 'react'; import Component from '../component'; import {decorate, getTabProps} from '../utils/plugins'; import Tab_ from './tab'; const Tab = decorate(Tab_, 'Tab'); const isMac = /Mac/.test(navigator.userAgent); export default class Tabs extends Component { template(css) { const { tabs = [], borderColor, onChange, onClose } = this.props; const hide = !isMac && tabs.length === 1; return (); } styles() { return { nav: { fontSize: '12px', height: '34px', lineHeight: '34px', verticalAlign: 'middle', color: '#9B9B9B', cursor: 'default', position: 'relative', WebkitUserSelect: 'none', WebkitAppRegion: isMac ? 'drag' : '', top: isMac ? '' : '34px' }, hiddenNav: { display: 'none' }, title: { textAlign: 'center', color: '#fff' }, list: { maxHeight: '34px', display: 'flex', flexFlow: 'row', marginLeft: isMac ? 76 : 0 }, borderShim: { position: 'absolute', width: '76px', bottom: 0, borderColor: '#ccc', borderBottomStyle: 'solid', borderBottomWidth: '1px' } }; } }