This commit is contained in:
nocnico
2025-06-02 01:04:58 +02:00
3 changed files with 56 additions and 10 deletions

View File

@@ -1,11 +1,15 @@
import { useQuery } from "@tanstack/react-query";
import { getConnectedDispatcherAPI } from "_querys/connected-user";
import { useState } from "react";
export const ConnectedDispatcher = () => {
const [open, setOpen] = useState(false);
const {} = useQuery({
queryKey: [""],
const { data: dispatcher } = useQuery({
queryKey: ["dispatcher"],
queryFn: () => getConnectedDispatcherAPI(),
refetchInterval: 10000,
});
console.log("ConnectedDispatcher", dispatcher);
return (
<div className="absolute top-5 right-10 min-w-120 z-99999">