-
-
Save covelitein/6f2867f66666488462ac9d630a7b77c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Card from './Card' | |
const CardCollection = ({ appartments }) => { | |
return ( | |
<div className="py-8 px-14 flex justify-center flex-wrap space-x-4 w-full"> | |
{ | |
appartments.length > 0 ? | |
appartments.map((room, i) => | |
<Card appartment={room} key={i}/> | |
) | |
: 'No appartments yet!' | |
} | |
</div> | |
) | |
} | |
export default CardCollection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment