import React, { useState } from "react"; import styles from "./Maps.module.css"; import "react-tiles-dnd/esm/index.css"; import { TilesContainer } from "react-tiles-dnd"; import { Link } from "react-router-dom"; import card from "../../assets/card-map.png"; const initialTiles = [ { text: "FINKI", cols: 1, rows: 1 }, { text: "TMF", cols: 1, rows: 1 }, { text: "HOSPITAL", cols: 1, rows: 1 }, { text: "POLICE", cols: 1, rows: 1 }, { text: "LIBRARY", cols: 1, rows: 1 }, { text: "PENTAGON", cols: 1, rows: 1 }, { text: "WHITE HOUSE", cols: 1, rows: 1 }, { text: "HOME", cols: 1, rows: 1 }, { text: "PRESPATEKS", cols: 1, rows: 1 }, ]; const renderTile = ({ data, isDragging }) => (