mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
29 lines
887 B
TypeScript
29 lines
887 B
TypeScript
|
|
import { memo } from 'react';
|
||
|
|
import * as Tabs from '@radix-ui/react-tabs';
|
||
|
|
import { SettingsTabValues } from 'librechat-data-provider';
|
||
|
|
import SendMessageKeyEnter from './EnterToSend';
|
||
|
|
import ShowCodeSwitch from './ShowCodeSwitch';
|
||
|
|
import { ForkSettings } from './ForkSettings';
|
||
|
|
|
||
|
|
function Messages() {
|
||
|
|
return (
|
||
|
|
<Tabs.Content
|
||
|
|
value={SettingsTabValues.MESSAGES}
|
||
|
|
role="tabpanel"
|
||
|
|
className="w-full md:min-h-[300px]"
|
||
|
|
>
|
||
|
|
<div className="flex flex-col gap-3 text-sm text-gray-600 dark:text-gray-50">
|
||
|
|
<div className="border-b pb-3 last-of-type:border-b-0 dark:border-gray-700">
|
||
|
|
<SendMessageKeyEnter />
|
||
|
|
</div>
|
||
|
|
<div className="border-b pb-3 last-of-type:border-b-0 dark:border-gray-700">
|
||
|
|
<ShowCodeSwitch />
|
||
|
|
</div>
|
||
|
|
<ForkSettings />
|
||
|
|
</div>
|
||
|
|
</Tabs.Content>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
export default memo(Messages);
|