import axios from "axios";
import { removeOfficer, setAllOfficers } from "../store/officersReducer";
import { setMessage } from "../store/infoMessagesReducer";
import { setSingleOfficer, setSingleOfficerError } from "../store/singleOfficerReducer";
const headers = (token) =>{
headers: {
Authorization: `Bearer ${token}`,
"Content-type": "application/json"
}
}
function getRandom(min = 0, max = 5) {
return Math.floor(Math.random() * (max - min + 1) + min)
}
bombs.push({
x: x,
y: y
});
for (bomb in bombs) {
if (!(bomb.x == x && bomb.y == y)) {