'use client' import type { FC } from 'react' import React, { useState, useMemo } from 'react' import useSWR from 'swr' import { useTranslation } from 'react-i18next' import { useRouter } from 'next/navigation' import { debounce } from 'lodash-es' // import Link from 'next/link' import { PlusIcon } from '@heroicons/react/24/solid' import { omit } from 'lodash-es' import List from './list' import s from './style.module.css' import Loading from '@/app/components/base/loading' import Button from '@/app/components/base/button' import Input from '@/app/components/base/input' import Pagination from '@/app/components/base/pagination' import { get } from '@/service/base' import { fetchDocuments } from '@/service/datasets' // Custom page count is not currently supported. const limit = 15 const FolderPlusIcon: FC<{ className?: string }> = ({ className }) => { return } const ThreeDotsIcon: FC<{ className?: string }> = ({ className }) => { return } const NotionIcon: FC<{ className?: string }> = ({ className }) => { return } const EmptyElement: FC<{ onClick: () => void; type?: 'upload' | 'sync' }> = ({ onClick, type = 'upload' }) => { const { t } = useTranslation() return
{t('datasetDocuments.list.desc')}