using background-image url in styled components theme code example
Example: background image with styled components
const Content = styled.div`
background-image: url(${props => props.img});
`;
<Content img={ImagePath} />
const Content = styled.div`
background-image: url(${props => props.img});
`;
<Content img={ImagePath} />