import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import remcalc from 'remcalc'; import Label from '../label'; const StyledLabel = Label.extend` ${props => (props.color === 'light' ? `color: ${props.theme.white};` : '')}; margin-left: ${props => (props.iconPosition === 'left' ? remcalc(24) : 0)} `; const StyledIconContainer = styled.div` position: absolute; > svg { ${props => (props.color === 'light' ? `fill: ${props.theme.white};` : '')}; } `; const CardInfo = ({ label, icon, iconPosition = 'left', color = 'light' }) => { return (