import { View, ScrollView, Button } from "react-native"; import React, { useState } from "react"; import { Stack } from "expo-router"; import InteractiveSession, { InteractiveSessionProps, } from "@/components/containers/interactive-session"; import PagerView from "@/components/ui/pager-view"; type Session = InteractiveSessionProps & { id: string }; const HomePage = () => { const [sessions, setSessions] = useState([ { id: "1", type: "incus", params: { client: "xtermjs", serverId: "1", shell: "bash" }, }, // { // id: "1", // type: "ssh", // params: { serverId: "1" }, // }, // { // id: "2", // type: "pve", // params: { client: "vnc", serverId: "2" }, // }, // { // id: "3", // type: "pve", // params: { client: "xtermjs", serverId: "3" }, // }, ]); const [curSession, setSession] = useState(0); return ( {sessions.map((session, idx) => (