joyent-portal/packages/ui-toolkit/src/icons/healthy.js

15 lines
371 B
JavaScript
Raw Normal View History

// eslint-disable-next-line no-unused-vars
import React from 'react';
import styled from 'styled-components';
import HealthyIcon from './svg/icon_healthy.svg';
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};
`;
export default StyledHealthyIcon;