nexxtway/react-rainbow

View on GitHub
src/components/MapMarker/styled/icon.js

Summary

Maintainability
A
50 mins
Test Coverage
import styled from 'styled-components';
import attachThemeAttrs from '../../../styles/helpers/attachThemeAttrs';
import { BORDER_RADIUS_2 } from '../../../styles/borderRadius';
import { MARGIN_SMALL } from '../../../styles/margins';

const StyledIcon = attachThemeAttrs(styled.span)`
    flex-shrink: 0;
    background-color: ${props => props.palette.background.highlight};
    border-radius: ${BORDER_RADIUS_2};
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: ${MARGIN_SMALL};
    height: 2.125rem;
    width: 2.125rem;
`;

export default StyledIcon;