import { useQueries } from "@tanstack/react-query"; import styles from "../../styles"; import { EquipmentsAPI, EquipmentInstancesAPI, UserAPI } from "../API/API"; import { useNavigate } from "react-router-dom"; import { Button } from "@mui/material"; import FormatListBulletedIcon from "@mui/icons-material/FormatListBulleted"; import AddToQueueIcon from "@mui/icons-material/AddToQueue"; import NoteAddIcon from "@mui/icons-material/NoteAdd"; import NoteIcon from "@mui/icons-material/Note"; import { colors } from "../../styles"; import ScienceIcon from "@mui/icons-material/Science"; import ColorizeIcon from "@mui/icons-material/Colorize"; import Popup from "reactjs-popup"; import AddItemModal from "../AddItemModal/AddItemModal"; import AddSKUModal from "../AddSKUModal/AddSKUModal"; import { useState } from "react"; export default function TechnicianButtons() { const [addSKUmodalOpen, SetAddSKUModalOpen] = useState(false); const [additemmodalOpen, SetAddItemModalOpen] = useState(false); const navigate = useNavigate(); const queries = useQueries({ queries: [ { queryKey: ["equipments"], queryFn: EquipmentsAPI, }, { queryKey: ["equipment_instances"], queryFn: EquipmentInstancesAPI, }, { queryKey: ["user"], queryFn: UserAPI, }, ], }); return ( <>

Equipments

SetAddSKUModalOpen(false)} modal position={"top center"} contentStyle={{ width: "32rem", borderRadius: 16, borderColor: "grey", borderStyle: "solid", borderWidth: 1, padding: 16, alignContent: "center", justifyContent: "center", textAlign: "center", }} > SetAddItemModalOpen(false)} modal position={"top center"} contentStyle={{ width: "32rem", borderRadius: 16, borderColor: "grey", borderStyle: "solid", borderWidth: 1, padding: 16, alignContent: "center", justifyContent: "center", textAlign: "center", }} > ); }