import { useQuery } from "@tanstack/react-query";
import { useState } from "react";

export const ConnectedDispatcher = () => {
	const [open, setOpen] = useState(false);
	const {} = useQuery({
		queryKey: [""],
	});

	return (
		<div className="absolute top-5 right-10 min-w-120 z-99999">
			<div className="collapse collapse-arrow bg-base-100 border-base-300 border">
				<input type="checkbox" />
				{/* <div className="collapse-title font-semibold">Kein Disponent Online</div> */}
				<div className="collapse-title font-semibold">15 Verbundene Mitglieder</div>
				<div className="collapse-content">
					<ul className="list bg-base-100 rounded-box shadow-md">
						<li className="text-xs opacity-60 tracking-wide">Disponenten: 1</li>
						<li className="pb-2 text-xs opacity-60 tracking-wide">Piloten: 14</li>

						<li className="flex list-row justify-between items-center">
							<div>
								<div>Nicolas K.</div>
								<div className="text-xs uppercase font-semibold opacity-60">LST_1</div>
							</div>
							<div>INSERT BADGES HERE</div>
						</li>

						<li className="flex list-row justify-between items-center">
							<div>
								<div>Marvin S.</div>
								<div className="text-xs uppercase font-semibold opacity-60">Christoph 100</div>
							</div>
							<div>INSERT BADGES HERE</div>
						</li>

						<li className="flex list-row justify-between items-center">
							<div>
								<div>Sabrino Gardener</div>
								<div className="text-xs uppercase font-semibold opacity-60">Christophorus 1</div>
							</div>
							<div>INSERT BADGES HERE</div>
						</li>
					</ul>
				</div>
			</div>
		</div>
	);
};
