Add sub groups to group table

This commit is contained in:
Mitchell McCaffrey
2021-05-14 18:02:50 +10:00
parent ab800150ec
commit 05968c1964
18 changed files with 272 additions and 116 deletions

View 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;