import React from "react"; import { Redirect } from "expo-router"; import { useTermSession } from "@/stores/terminal-sessions"; import { useServer } from "@/stores/app"; export default function index() { const { sessions, curSession } = useTermSession(); const curServer = useServer(); if (!curServer) { return ; } return ( 0 && curSession >= 0 ? "/terminal" : "/hosts"} /> ); }