|
@@ -3,6 +3,7 @@ import type { FC } from 'react'
|
|
import React, { useCallback, useRef, useState } from 'react'
|
|
import React, { useCallback, useRef, useState } from 'react'
|
|
import copy from 'copy-to-clipboard'
|
|
import copy from 'copy-to-clipboard'
|
|
import cn from 'classnames'
|
|
import cn from 'classnames'
|
|
|
|
+import Wrap from './wrap'
|
|
import PromptEditorHeightResizeWrap from '@/app/components/app/configuration/config-prompt/prompt-editor-height-resize-wrap'
|
|
import PromptEditorHeightResizeWrap from '@/app/components/app/configuration/config-prompt/prompt-editor-height-resize-wrap'
|
|
import { Clipboard, ClipboardCheck } from '@/app/components/base/icons/src/vender/line/files'
|
|
import { Clipboard, ClipboardCheck } from '@/app/components/base/icons/src/vender/line/files'
|
|
import ToggleExpandBtn from '@/app/components/workflow/nodes/_base/components/toggle-expand-btn'
|
|
import ToggleExpandBtn from '@/app/components/workflow/nodes/_base/components/toggle-expand-btn'
|
|
@@ -48,7 +49,7 @@ const Base: FC<Props> = ({
|
|
}, [value])
|
|
}, [value])
|
|
|
|
|
|
return (
|
|
return (
|
|
- <div className={cn(wrapClassName)} style={wrapStyle}>
|
|
+ <Wrap className={cn(wrapClassName)} style={wrapStyle} isInNode={isInNode} isExpand={isExpand}>
|
|
<div ref={ref} className={cn(className, isExpand && 'h-full', 'rounded-lg border', isFocus ? 'bg-white border-gray-200' : 'bg-gray-100 border-gray-100 overflow-hidden')}>
|
|
<div ref={ref} className={cn(className, isExpand && 'h-full', 'rounded-lg border', isFocus ? 'bg-white border-gray-200' : 'bg-gray-100 border-gray-100 overflow-hidden')}>
|
|
<div className='flex justify-between items-center h-7 pt-1 pl-3 pr-2'>
|
|
<div className='flex justify-between items-center h-7 pt-1 pl-3 pr-2'>
|
|
<div className='text-xs font-semibold text-gray-700'>{title}</div>
|
|
<div className='text-xs font-semibold text-gray-700'>{title}</div>
|
|
@@ -81,7 +82,7 @@ const Base: FC<Props> = ({
|
|
</div>
|
|
</div>
|
|
</PromptEditorHeightResizeWrap>
|
|
</PromptEditorHeightResizeWrap>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
+ </Wrap>
|
|
)
|
|
)
|
|
}
|
|
}
|
|
export default React.memo(Base)
|
|
export default React.memo(Base)
|