Feat: Display a separate chat multi-model comparison page #3221 (#9461)

### What problem does this PR solve?
Feat: Display a separate chat multi-model comparison page #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-08-14 09:39:20 +08:00
committed by GitHub
parent 98b4c67292
commit 434b55be70
7 changed files with 173 additions and 53 deletions

View File

@ -17,8 +17,9 @@ import { useSelectDerivedConversationList } from '../hooks/use-select-conversati
type SessionProps = Pick<
ReturnType<typeof useHandleClickConversationCard>,
'handleConversationCardClick'
> & { switchSettingVisible(): void };
> & { switchSettingVisible(): void; hasSingleChatBox: boolean };
export function Sessions({
hasSingleChatBox,
handleConversationCardClick,
switchSettingVisible,
}: SessionProps) {
@ -91,7 +92,11 @@ export function Sessions({
))}
</div>
<div className="py-2">
<Button className="w-full" onClick={switchSettingVisible}>
<Button
className="w-full"
onClick={switchSettingVisible}
disabled={!hasSingleChatBox}
>
Chat Settings
</Button>
</div>