chat upload file

This commit is contained in:
StyleZhang
2024-03-18 15:04:02 +08:00
parent 1482eb0348
commit c35c0fc6f4
3 changed files with 19 additions and 17 deletions

View File

@ -28,20 +28,22 @@ const Features = () => {
<div className='fixed top-16 left-2 bottom-2 w-[600px] rounded-2xl border-[0.5px] border-gray-200 bg-white shadow-xl z-10'>
<div className='flex items-center justify-between px-4 pt-3'>
{t('workflow.common.features')}
{
isChatMode && (
<div className='flex items-center'>
<FeaturesChoose onChange={handleFeaturesChange} />
<div className='mx-3 w-[1px] h-[14px] bg-gray-200'></div>
<div
className='flex items-center justify-center w-6 h-6 cursor-pointer'
onClick={() => setShowFeaturesPanel(false)}
>
<XClose className='w-4 h-4 text-gray-500' />
</div>
</div>
)
}
<div className='flex items-center'>
{
isChatMode && (
<>
<FeaturesChoose onChange={handleFeaturesChange} />
<div className='mx-3 w-[1px] h-[14px] bg-gray-200'></div>
</>
)
}
<div
className='flex items-center justify-center w-6 h-6 cursor-pointer'
onClick={() => setShowFeaturesPanel(false)}
>
<XClose className='w-4 h-4 text-gray-500' />
</div>
</div>
</div>
<div className='p-4'>
<FeaturesPanel