import { Button, Popover, Tooltip } from "antd"; import { ArrowRightOutlined, LogoutOutlined } from "@ant-design/icons"; import { api } from "./api"; import { setAuth } from "./stores/auth"; import { useQuery } from "@tanstack/react-query"; import { Title } from "./components/Title"; export function SignOut() { const logOut = async () => { await api.post("accounts/logout/"); setAuth(false); }; const { data } = useQuery(["profile"], async () => { const { data } = await api.get("/accounts/profile"); return data; }); return (