import React, {useEffect, useState} from "react"; import styles from "./CreateMaps.module.css"; import {TilesContainer} from "react-tiles-dnd"; import MapInfoModal from "../../components/MapInfoModal/MapInfoModal.jsx"; import CreateMapModal from "../../components/Modals/CreateMapModal/CreateMapModal.jsx"; import HttpService from "../../scripts/net/HttpService.js"; import card from "../../assets/card-map.png"; import Logo from "../../components/Logo/Logo.jsx"; import Profile from "../../components/Profile/Profile.jsx"; import {useAppContext} from "../../components/AppContext/AppContext.jsx"; import config from "../../scripts/net/netconfig.js"; import {element} from "prop-types"; import Toast from "../../components/Toast/Toast.jsx"; const renderTile = ({data, isDragging}, openMapInfo) => (