feat: realtime config

This commit is contained in:
Dogtiti
2024-11-07 21:28:23 +08:00
parent 283caba8ce
commit e44ebe3f0e
7 changed files with 320 additions and 58 deletions

View File

@@ -793,11 +793,13 @@ export function ChatActions(props: {
)}
</>
<div className={styles["chat-input-actions-end"]}>
<ChatAction
onClick={() => props.setShowChatSidePanel(true)}
text={"Realtime Chat"}
icon={<HeadphoneIcon />}
/>
{config.realtimeConfig.enable && (
<ChatAction
onClick={() => props.setShowChatSidePanel(true)}
text={"Realtime Chat"}
icon={<HeadphoneIcon />}
/>
)}
</div>
</div>
);