### What problem does this PR solve? Feat: Supports to debug single component in Agent. #3993 Fix: The github button on the login page is displayed incorrectly #4002 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
23 lines
537 B
TypeScript
23 lines
537 B
TypeScript
import {
|
|
Tooltip,
|
|
TooltipContent,
|
|
TooltipProvider,
|
|
TooltipTrigger,
|
|
} from '@/components/ui/tooltip';
|
|
import { PropsWithChildren } from 'react';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
export const RunTooltip = ({ children }: PropsWithChildren) => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<TooltipProvider>
|
|
<Tooltip>
|
|
<TooltipTrigger>{children}</TooltipTrigger>
|
|
<TooltipContent>
|
|
<p>{t('flow.testRun')}</p>
|
|
</TooltipContent>
|
|
</Tooltip>
|
|
</TooltipProvider>
|
|
);
|
|
};
|