import React from 'react'; import Flex, { FlexItem } from 'styled-flex-component'; import { Margin } from 'styled-components-spacing'; import styled from 'styled-components'; import remcalc from 'remcalc'; import is from 'styled-is'; import { H5 as BaseH5, TickIcon, CloseIcon } from 'joyent-ui-toolkit'; const H5 = styled(BaseH5)` color: ${props => props.theme[props.color]}; `; const Frame = styled.div` border-radius: 50%; border: ${remcalc(2)} solid ${props => props.theme[props.border]}; height: ${remcalc(20)}; width: ${remcalc(20)}; display: flex; justify-content: center; align-items: center; ${is('fill')` background-color: ${props => props.theme[props.fill]}; `}; `; const Label = ({ children, ...props }) =>
{children}
; export const StatusIcon = ({ children, border, fill = false, Icon = null, ...props }) => ( {children ? {children} : null} ); export const Saved = ({ inverted, children }) => { const border = inverted ? 'white' : 'greenDark'; return ( }> ); }; export const Error = ({ inverted = false, noLabel = false, children }) => { const statusFill = inverted ? 'red' : 'white'; const iconFill = inverted ? 'white' : 'redDark'; return ( } > {noLabel ? null : ( )} ); };