// propagates props to child widget SimpleCard to create card gallery const user = "humanman.near"; const Gallery = styled.div` display: flex; justify-content: center; align-items: center; flex-wrap: wrap; `; return ( <Gallery> {props.cardData.map(({ img, link, title, description }) => { return ( <Widget src={`${user}/widget/SimpleCard`} props={{ img, link, title, description }} /> ); })} </Gallery> );