'use client' import React from 'react' import { useTranslation } from 'react-i18next' import type { createDocumentResponse } from '@/models/datasets' import EmbeddingDetail from '../../documents/detail/embedding' import cn from 'classnames' import s from './index.module.css' type StepThreeProps = { datasetId?: string, datasetName?: string, indexingType?: string, creationCache?: createDocumentResponse } const StepThree = ({ datasetId, datasetName, indexingType, creationCache }: StepThreeProps) => { const { t } = useTranslation() return (
{!datasetId && ( <>
{t('datasetCreation.stepThree.creationTitle')}
{t('datasetCreation.stepThree.creationContent')}
{t('datasetCreation.stepThree.label')}
{datasetName || creationCache?.dataset?.name}
)} {datasetId && (
{t('datasetCreation.stepThree.additionTitle')}
{`${t('datasetCreation.stepThree.additionP1')} ${datasetName || creationCache?.dataset?.name} ${t('datasetCreation.stepThree.additionP2')}`}
)}
{t('datasetCreation.stepThree.sideTipTitle')}
{t('datasetCreation.stepThree.sideTipContent')}
) } export default StepThree;