# All files / components/Money/styles MoneyStyles.js

0% Statements 0/5
0% Branches 0/4
0% Functions 0/1
0% Lines 0/5

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15

     import styled from 'styled-components';
    import get from 'extensions/themeGet';

    export default styled.span`
      color: ${props => {
        if (props.value > 0) {
          return get('colors.positive.default')(props);
        } else if (props.value < 0) {
          return get('colors.negative.default')(props);
        }

        return 'inherit';
      }};
    `;