Add sub groups to group table
This commit is contained in:
18
src/components/map/MapTileImage.js
Normal file
18
src/components/map/MapTileImage.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from "react";
|
||||
import { Image } from "theme-ui";
|
||||
|
||||
import { useDataURL } from "../../contexts/AssetsContext";
|
||||
import { mapSources as defaultMapSources } from "../../maps";
|
||||
|
||||
function MapTileImage({ map, sx }) {
|
||||
const mapURL = useDataURL(
|
||||
map,
|
||||
defaultMapSources,
|
||||
undefined,
|
||||
map.type === "file"
|
||||
);
|
||||
|
||||
return <Image sx={sx} src={mapURL}></Image>;
|
||||
}
|
||||
|
||||
export default MapTileImage;
|
||||
Reference in New Issue
Block a user