2026-08-07 10:44:03 +07:00
|
|
|
/**
|
2026-08-14 10:49:44 +07:00
|
|
|
* Voice — Server Component.
|
|
|
|
|
* Seeds authoritative voice status (shared active speakers snapshot) on the
|
|
|
|
|
* server, then hands off to the client View for the 3D scene + WS live updates.
|
2026-08-07 10:44:03 +07:00
|
|
|
*/
|
2026-08-14 10:49:44 +07:00
|
|
|
import { getVoiceStatus } from "@/lib/api/server";
|
|
|
|
|
import type { VoiceStatus } from "@/lib/types";
|
2026-08-07 10:44:03 +07:00
|
|
|
import VoiceView from "./view";
|
2026-07-26 15:34:08 +07:00
|
|
|
|
2026-08-07 10:44:03 +07:00
|
|
|
export default async function VoicePage() {
|
2026-08-14 10:49:44 +07:00
|
|
|
const status = await getVoiceStatus().catch(() => undefined);
|
|
|
|
|
return <VoiceView initialStatus={status} />;
|
2026-07-26 15:34:08 +07:00
|
|
|
}
|