'use client' import type { FC } from 'react' import { Alert, AlertTitle } from '@langgenius/dify-ui/alert' import * as React from 'react' import { useTranslation } from 'react-i18next' type Props = Readonly<{ textHasNoExport?: boolean downloadUrl?: string className?: string }> const LargeDataAlert: FC = ({ textHasNoExport, downloadUrl, className }) => { const { t } = useTranslation(['workflowDebug']) return ( {textHasNoExport ? t(($) => $['debug.variableInspect.largeDataNoExport'], { ns: 'workflowDebug' }) : t(($) => $['debug.variableInspect.largeData'], { ns: 'workflowDebug' })} {downloadUrl && ( {t(($) => $['debug.variableInspect.export'], { ns: 'workflowDebug' })} )} ) } export default React.memo(LargeDataAlert)