2017-06-28 20:36:54 +03:00
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
import React from 'react';
|
2017-08-14 13:21:45 +03:00
|
|
|
import styled from 'styled-components';
|
2017-06-28 20:36:54 +03:00
|
|
|
|
|
|
|
import HealthyIcon from './svg/icon_healthy.svg';
|
|
|
|
|
2017-08-14 13:21:45 +03:00
|
|
|
const StyledHealthyIcon = styled(HealthyIcon)`
|
2017-08-28 22:21:08 +03:00
|
|
|
fill: ${props =>
|
|
|
|
!props.healthy || props.healthy === 'HEALTHY'
|
|
|
|
? props.theme.green
|
|
|
|
: props.theme.orange};
|
2017-08-14 13:21:45 +03:00
|
|
|
`;
|
|
|
|
|
2017-10-09 21:01:34 +03:00
|
|
|
export default StyledHealthyIcon;
|