"use client";

import { Mrt } from "pilot/_components/mrt/Mrt";
import { Chat } from "../_components/left/Chat";
import { Report } from "../_components/left/Report";
import { usePilotConnectionStore } from "_store/pilot/connectionStore";

const DispatchPage = () => {
	const { activeMission } = usePilotConnectionStore();

	return (
		<div className="relative flex-1 flex transition-all duration-500 ease w-full">
			{/* <MapToastCard2 /> */}
			<div className="flex flex-1 relative">
				<div className="absolute left-0 top-1/2 transform -translate-y-1/2 pl-4 z-999999">
					<Chat />
					<div className="mt-2">
						<Report />
					</div>
				</div>
			</div>
			<div>{JSON.stringify(activeMission)}</div>
			<div>
				<Mrt />
			</div>
		</div>
	);
};

DispatchPage.displayName = "DispatchPage";

export default DispatchPage;
