'use client' import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' import s from './index.module.css' import { Icon3Dots } from '@/app/components/base/icons/src/vender/line/others' import Button from '@/app/components/base/button' import { DataSourceProvider } from '@/models/common' const I18N_PREFIX = 'datasetCreation.stepOne.website' type Props = { onConfig: () => void provider: DataSourceProvider } const NoData: FC = ({ onConfig, provider, }) => { const { t } = useTranslation() const providerConfig = { [DataSourceProvider.jinaReader]: { emoji: , title: t(`${I18N_PREFIX}.jinaReaderNotConfigured`), description: t(`${I18N_PREFIX}.jinaReaderNotConfiguredDescription`), }, [DataSourceProvider.fireCrawl]: { emoji: '🔥', title: t(`${I18N_PREFIX}.fireCrawlNotConfigured`), description: t(`${I18N_PREFIX}.fireCrawlNotConfiguredDescription`), }, } const currentProvider = providerConfig[provider] return ( <>
{currentProvider.emoji}
{currentProvider.title}
{currentProvider.description}
) } export default React.memo(NoData)