'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Tab = _styledComponents2.default.div.withConfig({ displayName: 'Tab' }).withConfig({
  displayName: 'Tab__Tab'
})(['border: 0;padding: ', ';opacity: 1;transition: all 0.2s ease;position: relative;cursor: pointer;color: ', ';&::before {content: "";background: ', ';width: 104%;height: ', ';display: block;position: absolute;bottom: ', ';top: ', ';left: 50%;transform: translateX(-50%);transition: height 0.2s ease, opacity 0.2s ease;}&:hover::before {opacity: 0.5;height: 5px;}'], function (_ref) {
  var theme = _ref.theme;
  return theme.tab.padding;
}, function (_ref2) {
  var theme = _ref2.theme,
      active = _ref2.active;
  return active ? theme.tab.activeFG : theme.tab.fg;
}, function (_ref3) {
  var theme = _ref3.theme;
  return theme.tab.accent;
}, function (_ref4) {
  var active = _ref4.active;
  return active ? '5px' : 0;
}, function (_ref5) {
  var theme = _ref5.theme;
  return theme.tab.accentBarBottom;
}, function (_ref6) {
  var theme = _ref6.theme;
  return theme.tab.accentBarTop;
});

exports.default = Tab;