interface CardHeaderImageProps {
avatar?: any;
thumbnail?: any;
}
const CardHeaderImage = styled.div<CardHeaderImageProps>`
background-size: cover;
background-position: center;
${(props: CardHeaderProps) =>
props.thumbnail &&
css`
width: 60px;
height: 60px;
border-radius: 5px;
background-image: url(${(props: CardHeaderProps) => props.thumbnail});
`}
${(props: CardHeaderProps) =>
props.avatar &&
css`
width: 50px;
height: 50px;
margin: 4px 0px;
border-radius: 25px;
background-image: url(${(props: CardHeaderProps) => props.avatar});
`}
`;