mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-11 06:00:15 -07:00
25 lines
490 B
TypeScript
25 lines
490 B
TypeScript
import * as React from 'react';
|
|
|
|
import { useChatLLMDropdown } from './useLLMDropdown';
|
|
import { usePersonaIdDropdown } from './usePersonaDropdown';
|
|
|
|
|
|
export function ChatDropdowns(props: {
|
|
conversationId: string | null
|
|
}) {
|
|
|
|
// state
|
|
const { chatLLMDropdown } = useChatLLMDropdown();
|
|
const { personaDropdown } = usePersonaIdDropdown(props.conversationId);
|
|
|
|
return <>
|
|
|
|
{/* Model selector */}
|
|
{chatLLMDropdown}
|
|
|
|
{/* Persona selector */}
|
|
{personaDropdown}
|
|
|
|
</>;
|
|
}
|