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: "ssh", params: { hostId: "01jc3v9w609f8e2wzw60amv195" }, }, { id: "2", type: "pve", params: { client: "vnc", hostId: "01jc3wp2b3zvgr777f4e3caw4w" }, }, { id: "3", type: "pve", params: { client: "xtermjs", hostId: "01jc3z3yyn2fgb77tyfxc1tkfy" }, }, { id: "4", type: "incus", params: { client: "xtermjs", hostId: "01jc3xz9db0v54dg10hk70a13b", shell: "fish", }, }, ]); const [curSession, setSession] = useState(0); return ( {sessions.map((session, idx) => (