import React from 'react'; import Link from 'next/link'; import { Typography, Space, Dropdown, Tabs, TabPane } from '@douyinfe/semi-ui'; import { IconChevronDown } from '@douyinfe/semi-icons'; import { useRecentDocuments } from 'data/document'; import { Empty } from 'components/empty'; import { DataRender } from 'components/data-render'; import { LocaleTime } from 'components/locale-time'; import { DocumentStar } from 'components/document/star'; import { IconDocumentFill } from 'components/icons/IconDocumentFill'; import { Placeholder } from './placeholder'; import styles from './index.module.scss'; const { Text } = Typography; export const Recent = () => { const { data: recentDocs, loading, error } = useRecentDocuments(); return ( } error={error} normalContent={() => { return (
{recentDocs.length ? ( recentDocs.map((doc) => { return ( ); }) ) : ( )}
); }} />
} > 最近
); };