'use client' import React from 'react' import { useTranslation } from 'react-i18next' import { XMarkIcon } from '@heroicons/react/20/solid' import s from '../file-preview/index.module.css' import cn from '@/utils/classnames' import type { CrawlResultItem } from '@/models/datasets' type IProps = { payload: CrawlResultItem hidePreview: () => void } const WebsitePreview = ({ payload, hidePreview, }: IProps) => { const { t } = useTranslation() return (
{t('datasetCreation.stepOne.pagePreview')}
{payload.title}
{payload.source_url}
{payload.markdown}
) } export default WebsitePreview