'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: 'MoneyStyles'
})(['color:', ';'], function (props) {
  if (props.value > 0) {
    return (0, _themeGet2.default)('colors.positive.default')(props);
  } else if (props.value < 0) {
    return (0, _themeGet2.default)('colors.negative.default')(props);
  }

  return 'inherit';
});