import React from 'react';
import styled from 'styled-components';

interface CardIconProps {
  children?: React.ReactNode;
}

const CardIcon: React.FC<CardIconProps> = ({children}) => <StyledCardIcon>{children}</StyledCardIcon>;

const StyledCardIcon = styled.div`
  background-color: rgba(0,0,0,0.2);
  font-size: 36px;
  height: 95px;
  width: 95px;
  border-radius: 95px;
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto ${(props) => props.theme.spacing[3]}px;
`;

export default CardIcon;
