import React from "react"; import { Flex, Image as UIImage } from "theme-ui"; import AddIcon from "../../icons/AddIcon"; function MapSelect({ maps, selectedMap, onMapSelected, onMapAdd }) { const tileProps = { m: 2, bg: "muted", }; const tileStyle = { width: "150px", height: "150px", borderRadius: "4px", justifyContent: "center", alignItems: "center", cursor: "pointer", }; // TODO move from passing index in to using DB ID function tile(map, index) { return ( onMapSelected(index)} > ); } return ( {maps.map((map, index) => tile(map, index))} ); } export default MapSelect;