mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-25 11:46:12 +01:00
25 lines
803 B
TypeScript
25 lines
803 B
TypeScript
|
|
import { useRecoilValue } from 'recoil';
|
||
|
|
import { SettingsViews } from 'librechat-data-provider';
|
||
|
|
import type { TSettingsProps } from '~/common';
|
||
|
|
import { Advanced } from './Settings';
|
||
|
|
import { cn } from '~/utils';
|
||
|
|
import store from '~/store';
|
||
|
|
|
||
|
|
export default function AlternativeSettings({
|
||
|
|
conversation,
|
||
|
|
setOption,
|
||
|
|
isPreset = false,
|
||
|
|
className = '',
|
||
|
|
}: TSettingsProps & { isMultiChat?: boolean }) {
|
||
|
|
const currentSettingsView = useRecoilValue(store.currentSettingsView);
|
||
|
|
if (!conversation?.endpoint || currentSettingsView === SettingsViews.default) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
return (
|
||
|
|
<div className={cn('hide-scrollbar h-[500px] overflow-y-auto md:mb-2 md:h-[350px]', className)}>
|
||
|
|
<Advanced conversation={conversation} setOption={setOption} isPreset={isPreset} />
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|