'use client' import type { FC } from 'react' import { RiInformation2Fill } from '@remixicon/react' import * as React from 'react' import { useTranslation } from 'react-i18next' import { cn } from '@/utils/classnames' type Props = { 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)