'use client' import type { FC } from 'react' import React, { useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' import useSWR from 'swr' import { omit } from 'lodash-es' import cn from 'classnames' import dayjs from 'dayjs' import SegmentCard from '../documents/detail/completed/SegmentCard' import docStyle from '../documents/detail/completed/style.module.css' import Textarea from './textarea' import s from './style.module.css' import HitDetail from './hit-detail' import type { HitTestingResponse, HitTesting as HitTestingType } from '@/models/datasets' import Loading from '@/app/components/base/loading' import Modal from '@/app/components/base/modal' import Pagination from '@/app/components/base/pagination' import { fetchTestingRecords } from '@/service/datasets' const limit = 10 type Props = { datasetId: string } const RecordsEmpty: FC = () => { const { t } = useTranslation() return
{t('datasetHitTesting.desc')}
{t('datasetHitTesting.table.header.source')} | {t('datasetHitTesting.table.header.text')} | {t('datasetHitTesting.table.header.time')} |
{record.source.replace('_', ' ')}
|
{record.content} | {dayjs.unix(record.created_at).format(t('datasetHitTesting.dateTimeFormat') as string)} |