mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-29 17:45:12 +08:00

Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: -LAN- <laipz8200@outlook.com>
23 lines
547 B
TypeScript
23 lines
547 B
TypeScript
import React, { type FC } from 'react'
|
|
import { RiCheckLine } from '@remixicon/react'
|
|
import type { Item } from '@/app/components/base/select'
|
|
|
|
type IStatusItemProps = {
|
|
item: Item
|
|
selected: boolean
|
|
}
|
|
|
|
const StatusItem: FC<IStatusItemProps> = ({
|
|
item,
|
|
selected,
|
|
}) => {
|
|
return (
|
|
<div className='flex items-center justify-between py-1.5 px-2'>
|
|
<span className='system-md-regular'>{item.name}</span>
|
|
{selected && <RiCheckLine className='w-4 h-4 text-text-accent' />}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default React.memo(StatusItem)
|