mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 10:50:14 +01:00
20 lines
812 B
TypeScript
20 lines
812 B
TypeScript
|
|
import { SelectDropDown } from '~/components/ui';
|
||
|
|
import { cn, cardStyle } from '~/utils/';
|
||
|
|
import { ModelSelectProps } from 'librechat-data-provider';
|
||
|
|
|
||
|
|
export default function Google({ conversation, setOption, models }: ModelSelectProps) {
|
||
|
|
return (
|
||
|
|
<SelectDropDown
|
||
|
|
value={conversation?.model ?? ''}
|
||
|
|
setValue={setOption('model')}
|
||
|
|
availableValues={models}
|
||
|
|
showAbove={true}
|
||
|
|
showLabel={false}
|
||
|
|
className={cn(
|
||
|
|
cardStyle,
|
||
|
|
'min-w-48 z-50 flex h-[40px] w-48 flex-none items-center justify-center px-4 ring-0 transition duration-700 ease-in-out hover:cursor-pointer hover:bg-slate-50 hover:shadow-md focus:ring-0 focus:ring-offset-0 data-[state=open]:bg-slate-50 dark:bg-gray-700 dark:hover:bg-gray-600 dark:data-[state=open]:bg-gray-600',
|
||
|
|
)}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|