Files
enclave/src/App.tsx
T
2026-08-18 17:24:40 +02:00

23 lines
503 B
TypeScript

import { useRef } from "react";
import Enclave from "@/app/app";
import ServerList from "./components/view/serverList";
export default function App() {
const appRef = useRef<Enclave | null>(null);
if (!appRef.current) {
appRef.current = new Enclave();
appRef.current
.init()
.then(() => {
console.log("Encalve initialized");
})
.catch(console.error);
}
return (
<main className="size-screen">
<ServerList appRef={appRef} />
</main>
);
}