Files
enclave/src/components/page/channel/ChannelPage.tsx
T
2026-08-20 10:24:13 +02:00

17 lines
431 B
TypeScript

import Enclave from "@/app/app";
import { ChannelPageProps } from "@/components/page/PageView";
import TextChannel from "./TextChannel";
export default function ChannelPage({
appRef,
}: {
appRef: React.RefObject<Enclave<ChannelPageProps> | null>;
}) {
if (!appRef.current?.page?.channel.kind) return null;
switch (appRef.current?.page?.channel.kind) {
case "text":
return <TextChannel appRef={appRef} />;
}
}