mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 11:56:55 +08:00
28 lines
915 B
TypeScript
28 lines
915 B
TypeScript
'use client'
|
|
import { RiCloseLine } from '@remixicon/react'
|
|
import type { FC } from 'react'
|
|
import React from 'react'
|
|
|
|
type Props = {
|
|
onClear: () => void
|
|
}
|
|
|
|
const InputHasSetMultipleValue: FC<Props> = ({
|
|
onClear,
|
|
}) => {
|
|
return (
|
|
<div className='grow h-6 p-0.5 rounded-md bg-components-input-bg-normal text-[0]'>
|
|
<div className='inline-flex rounded-[5px] items-center h-5 pl-1.5 pr-0.5 bg-components-badge-white-to-dark border-[0.5px] border-components-panel-border shadow-xs space-x-0.5'>
|
|
<div className='system-xs-regular text-text-secondary'>Multiple Value</div>
|
|
<div className='p-0.5rounded-sm text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary cursor-pointer'>
|
|
<RiCloseLine
|
|
className='size-3.5 '
|
|
onClick={onClear}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
export default React.memo(InputHasSetMultipleValue)
|