Files
FFXN 83743d5af0 feat: evaluation (#35419)
Co-authored-by: jyong <718720800@qq.com>
Co-authored-by: Yansong Zhang <916125788@qq.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: hj24 <mambahj24@gmail.com>
Co-authored-by: hj24 <huangjian@dify.ai>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Co-authored-by: CodingOnStar <hanxujiang@dify.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-04-20 15:43:22 +08:00

25 lines
642 B
TypeScript

'use client'
import type { FC } from 'react'
import * as React from 'react'
import Tooltip from '@/app/components/base/tooltip'
export const Item: FC<{ title: string, tooltip: string, children: React.JSX.Element }> = ({
title,
tooltip,
children,
}) => {
return (
<div>
<div className="mb-1 flex items-center space-x-1">
<div className="py-1 text-text-secondary system-sm-semibold">{title}</div>
<Tooltip
popupContent={
<div className="max-w-[200px] text-text-secondary system-sm-regular">{tooltip}</div>
}
/>
</div>
<div>{children}</div>
</div>
)
}