'use strict';

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

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

var _styledComponents2 = _interopRequireDefault(_styledComponents);

var _themeGet = require('../../../extensions/themeGet');

var _themeGet2 = _interopRequireDefault(_themeGet);

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

exports.default = _styledComponents2.default.span.withConfig({
  displayName: 'TableHeaderSortArrows'
})(['margin-left:8px;white-space:nowrap;& > a{color:', ';}& > a:focus{color:', ';}& > a::after{background:', ';}', ';'], (0, _themeGet2.default)('colors.gray.medium'), (0, _themeGet2.default)('colors.text.inverted'), (0, _themeGet2.default)('colors.gray.medium'), function (props) {
  if (props.sortOrder > 0) {
    return (0, _styledComponents.css)(['& > *:first-child{color:', ';}'], (0, _themeGet2.default)('colors.text.inverted')(props));
  } else if (props.sortOrder < 0) {
    return (0, _styledComponents.css)(['& > *:last-child{color:', ';}'], (0, _themeGet2.default)('colors.text.inverted')(props));
  }
});