'use client' import type { FC } from 'react' import { PlusIcon } from '@heroicons/react/24/solid' import { useTranslation } from 'react-i18next' import Button from '@/app/components/base/button' import s from '../style.module.css' import { FolderPlusIcon, NotionIcon, ThreeDotsIcon } from './icons' type EmptyElementProps = { canAdd: boolean onClick: () => void type?: 'upload' | 'sync' } const EmptyElement: FC = ({ canAdd = true, onClick, type = 'upload' }) => { const { t } = useTranslation() return (
{type === 'upload' ? : }
{t('list.empty.title', { ns: 'datasetDocuments' })}
{t(`list.empty.${type}.tip`, { ns: 'datasetDocuments' })}
{type === 'upload' && canAdd && ( )}
) } export default EmptyElement