'use client' import type { FC } from 'react' import { cn } from '@langgenius/dify-ui/cn' import { Tooltip, TooltipContent, TooltipTrigger } from '@langgenius/dify-ui/tooltip' import * as React from 'react' type Props = Readonly<{ label: string description?: string tooltip?: string }> const Label: FC = ({ label, description, tooltip }) => { const tooltipIcon = ( ) return (
{label} {tooltip && ( {tooltip} )}
{description &&
{description}
}
) } export default React.memo(Label)