mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import {
|
|
forwardRef,
|
|
memo,
|
|
} from 'react'
|
|
import { RiCloseLine } from '@remixicon/react'
|
|
import FileListItem from './file-list-item'
|
|
import Button from '@/app/components/base/button'
|
|
|
|
const FileListFlexOperation = forwardRef<HTMLDivElement>((_, ref) => {
|
|
return (
|
|
<div
|
|
ref={ref}
|
|
className='flex flex-wrap gap-2'
|
|
>
|
|
<div className='relative'>
|
|
<Button className='absolute -right-1.5 -top-1.5 p-0 w-5 h-5 rounded-full'>
|
|
<RiCloseLine className='w-4 h-4 text-components-button-secondary-text' />
|
|
</Button>
|
|
<FileListItem />
|
|
</div>
|
|
<div className='relative'>
|
|
<Button className='absolute -right-1.5 -top-1.5 p-0 w-5 h-5 rounded-full'>
|
|
<RiCloseLine className='w-4 h-4 text-components-button-secondary-text' />
|
|
</Button>
|
|
<FileListItem />
|
|
</div>
|
|
<div className='relative'>
|
|
<Button className='absolute -right-1.5 -top-1.5 p-0 w-5 h-5 rounded-full'>
|
|
<RiCloseLine className='w-4 h-4 text-components-button-secondary-text' />
|
|
</Button>
|
|
<FileListItem isFile />
|
|
</div>
|
|
</div>
|
|
)
|
|
})
|
|
FileListFlexOperation.displayName = 'FileListFlexOperation'
|
|
|
|
export default memo(FileListFlexOperation)
|