Server list

This commit is contained in:
2026-08-18 15:17:31 +02:00
parent bca54910be
commit a14f6d3a0f
3 changed files with 24 additions and 7 deletions
+22
View File
@@ -0,0 +1,22 @@
import Enclave from "@/app/app";
export default function ServerList({
appRef,
}: {
appRef: React.RefObject<Enclave | null>;
}) {
return (
<aside className="bg-card w-16 h-screen p-2 flex flex-col gap-2.5">
{appRef.current?.serverList.map((server) => (
<img
src={`http://${server.hostname}/icon`}
className={
server.publicKey === appRef.current?.server?.hostname
? "rounded-lg"
: "rounded-full"
}
/>
))}
</aside>
);
}