Channel view

This commit is contained in:
2026-08-20 10:04:19 +02:00
parent 755ae24cde
commit c319266c51
5 changed files with 55 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
import Enclave from "@/app/app";
import ChannelPage from "./channel/ChannelPage";
import { Channel } from "@/app/protocol";
export type ChannelPageProps = {
kind: "channel";
channel: Channel;
};
export type Page = ChannelPageProps;
export default function Page({
appRef,
}: {
appRef: React.RefObject<Enclave | null>;
}) {
switch (appRef.current?.page?.kind) {
case "channel":
return <ChannelPage appRef={appRef} />;
default:
return null;
}
}