Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

443 B
Raw Blame
import { Redirect } from "expo-router";
import FullPageSpinner from "@/components/ui/FullPageSpinner";
import { useIsLoggedIn } from "@/lib/session";

export default function App() {
  const isLoggedIn = useIsLoggedIn();

  if (isLoggedIn === undefined) {
    // Wait until it's loaded
    return <FullPageSpinner />;
  } else if (isLoggedIn) {
    return <Redirect href="dashboard" />;
  } else {
    return <Redirect href="signin" />;
  }
}