Newer
Older
CrypticOreWallet / src / pages / CheckStatus.tsx
@Drew Lemmy Drew Lemmy on 21 Mar 2021 425 bytes feat: backup progress bar (closes #40)
// Copyright (c) 2020-2021 Drew Lemmy
// This file is part of KristWeb 2 under AGPL-3.0.
// Full details: https://github.com/tmpim/KristWeb2/blob/master/LICENSE.txt

import { AppLayout } from "@layout/AppLayout";
import { StatusPage } from "./StatusPage";

export function CheckStatus(): JSX.Element {
  const ok = /^.?O[kC]/.test(localStorage.getItem("status") || "offline");
  return ok ? <AppLayout /> : <StatusPage />;
}