'use client' import { RiInformation2Fill } from '@remixicon/react' import type { FC } from 'react' import React from 'react' import cn from '@/utils/classnames' import { useTranslation } from 'react-i18next' type Props = { textHasNoExport?: boolean downloadUrl?: string className?: string } const LargeDataAlert: FC = ({ textHasNoExport, downloadUrl, className, }) => { const { t } = useTranslation() const text = textHasNoExport ? t('workflow.debug.variableInspect.largeDataNoExport') : t('workflow.debug.variableInspect.largeData') return (
{text}
{downloadUrl && (
{t('workflow.debug.variableInspect.export')}
)}
) } export default React.memo(LargeDataAlert)