import { BookOutlined, EyeOutlined, TeamOutlined } from "@ant-design/icons"; import { Typography } from "antd"; import { PostDto } from "@nice/common"; const { Title, Text } = Typography; const DeptInfo = ({ post }: { post: PostDto }) => { return (
{post?.depts && post?.depts?.length > 0 ? ( {post?.depts?.length > 1 ? `${post.depts[0].name}等` : post?.depts?.[0]?.name} ) : ( 未设置单位 )}
{post && (
浏览量 {`${post?.meta?.views || 0}`} {post?.studentIds && post?.studentIds?.length > 0 && ( {`${post?.studentIds?.length || 0}`} )}
)}
); }; export default DeptInfo;