import { useAuthStore } from "../../../stores/authStore"; import { useUIStore } from "../../../stores/uiStore"; // @ts-ignore import CheckIcon from "../../../assets/fontawesome/svg/circle-check.svg?react"; // @ts-ignore import SpinnerIcon from "../../../assets/fontawesome/svg/rotate.svg?react"; // @ts-ignore import WarningIcon from "../../../assets/fontawesome/svg/circle-exclamation.svg?react"; export const StatusIndicator = () => { const { encryptionKey } = useAuthStore(); const { updating, setShowModal } = useUIStore(); return (
{ if (!encryptionKey) { setShowModal(true); } }} > {!encryptionKey ? ( ) : updating ? ( <> Saving... ) : ( <> Saved )}
); };