import { atom } from 'jotai'; import { ServerStatus } from '../utils/kumaStatus'; /** * [Gitea #124] The homeserver's status from its Kuma status page (null: none * configured, not fetched yet, or Kuma unreachable — all mean "no banner"), * plus whether this client's own connection is currently lost. */ export const serverStatusAtom = atom<{ status: ServerStatus | null; syncLost: boolean; /** When this client's connection dropped (ms), null while connected. */ lostAt: number | null; }>({ status: null, syncLost: false, lostAt: null, });