import { useId } from "react"; import { Btn, Chip } from "../../components/living/primitives"; import { useCopy, type Copy } from "../../ui/copy"; import type { InterfaceLayout } from "../../lib/room-preferences"; import "./channel-interface-control.css"; const interfaceOptions = (t: Copy["t"]) => [ { value: "workspace", label: t("channel.interfaceControl.fullWorkspace"), description: t("channel.interfaceControl.workspaceDescription") }, { value: "quick", label: t("channel.interfaceControl.simpleSharing"), description: t("channel.interfaceControl.quickDescription") }, ] as const; /** Presentation only; the caller owns whether this choice is saved or previewed. */ export function ChannelInterfaceControl({ value, onChange }: { value: InterfaceLayout; onChange(value: InterfaceLayout): void; }) { const { t } = useCopy(); return ; } /** An optional first-use choice; creation and personal preference stay with the page. */ export function ChannelInterfaceSuggestion({ value, onChange, onDismiss }: { value: InterfaceLayout; onChange(value: InterfaceLayout): void; onDismiss(): void; }) { const { t } = useCopy(); const headingId = useId(); return

{t("channel.interfaceControl.chooseYourView")}

{interfaceOptions(t).map(option => onChange(option.value)}> {option.label}{option.value === "workspace" && {t("channel.interfaceControl.default")}} {option.description} )}
; }