import { Tooltip } from "@mui/material"; import { useLocation } from "@tanstack/react-router"; import { AnimatePresence, motion } from "motion/react"; import React from "react"; import { shouldShowTitlebar } from "@/components/appTitlebar/routeVisibility"; import { type AppStatusPhase, useAppStatusStore, } from "@/utils/store/appStatus"; import "./appStatus.scss"; const ICONS: Record, string> = { success: "check", warning: "warning", error: "warning", info: "info", }; export const AppStatusIndicator = ({ floating = false, }: { floating?: boolean; }) => { const phase = useAppStatusStore((state) => state.phase); const message = useAppStatusStore((state) => state.message); if (phase === "idle") { return floating ? null : (