Add SelectedKnowledge component to OptionLayout and KnowledgeSelect

This commit is contained in:
n4ze3m
2024-04-06 10:48:51 +05:30
parent dd496b7b98
commit 82abbf5bad
4 changed files with 66 additions and 69 deletions

View File

@@ -35,8 +35,7 @@ export const PlaygroundForm = ({ dropedFile }: Props) => {
selectedQuickPrompt,
textareaRef,
setSelectedQuickPrompt,
selectedKnowledge,
setSelectedKnowledge
selectedKnowledge
} = useMessageOption()
const textAreaFocus = () => {
@@ -158,7 +157,6 @@ export const PlaygroundForm = ({ dropedFile }: Props) => {
}
return (
<div className="px-3 pt-3 md:px-6 md:pt-6 bg-gray-50 dark:bg-[#262626] border rounded-t-xl dark:border-gray-600">
<div
className={`h-full rounded-md shadow relative ${
form.values.image.length === 0 ? "hidden" : "block"