mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-29 14:48:51 +01:00
21 lines
617 B
TypeScript
21 lines
617 B
TypeScript
|
|
import AddedConvo from './AddedConvo';
|
||
|
|
import type { TConversation } from 'librechat-data-provider';
|
||
|
|
import type { SetterOrUpdater } from 'recoil';
|
||
|
|
|
||
|
|
export default function TextareaHeader({
|
||
|
|
addedConvo,
|
||
|
|
setAddedConvo,
|
||
|
|
}: {
|
||
|
|
addedConvo: TConversation | null;
|
||
|
|
setAddedConvo: SetterOrUpdater<TConversation | null>;
|
||
|
|
}) {
|
||
|
|
if (!addedConvo) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
return (
|
||
|
|
<div className="divide-token-border-light m-1.5 flex flex-col divide-y overflow-hidden rounded-b-lg rounded-t-2xl bg-surface-primary-contrast">
|
||
|
|
<AddedConvo addedConvo={addedConvo} setAddedConvo={setAddedConvo} />
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|