mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-25 08:06:48 +08:00
### What problem does this PR solve? Feat: Render agent details #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
20 lines
461 B
TypeScript
20 lines
461 B
TypeScript
import {
|
|
Tooltip,
|
|
TooltipContent,
|
|
TooltipTrigger,
|
|
} from '@/components/ui/tooltip';
|
|
import { PropsWithChildren } from 'react';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
export const RunTooltip = ({ children }: PropsWithChildren) => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<Tooltip>
|
|
<TooltipTrigger>{children}</TooltipTrigger>
|
|
<TooltipContent>
|
|
<p>{t('flow.testRun')}</p>
|
|
</TooltipContent>
|
|
</Tooltip>
|
|
);
|
|
};
|