import React from 'react'; import { TableCard } from '@/components'; import '@/style/common.less'; import '../index.less'; import { imgMap, typeList } from './noticeTemplate'; export interface NoticeCardProps extends ConfigItem { detail?: React.ReactNode; actions?: React.ReactNode[]; avatarSize?: number; } export default (props: NoticeCardProps) => { return (
{props.type}
{props.name}
{typeList[props.type][props.provider] || '暂无'}
{props.description}
); };