'use client' import type { FC } from 'react' import { cn } from '@langgenius/dify-ui/cn' import { RiInformation2Fill } from '@remixicon/react' 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() const text = textHasNoExport ? t(($) => $['debug.variableInspect.largeDataNoExport'], { ns: 'workflow' }) : t(($) => $['debug.variableInspect.largeData'], { ns: 'workflow' }) return (
{text}
{downloadUrl && (
{t(($) => $['debug.variableInspect.export'], { ns: 'workflow' })}
)}
) } export default React.memo(LargeDataAlert)