import React from 'react'; import { Ellipsis, TableCard } from '@/components'; import '@/style/common.less'; import '../index.less'; export interface NoticeCardProps extends TemplateItem { detail?: React.ReactNode; actions?: React.ReactNode[]; avatarSize?: number; } export const imgMap = { dingTalk: { dingTalkMessage: require('/public/images/notice/dingtalk.png'), dingTalkRobotWebHook: require('/public/images/notice/dingTalk-rebot.png'), }, weixin: { corpMessage: require('/public/images/notice/weixin-corp.png'), officialMessage: require('/public/images/notice/weixin-official.png'), }, email: { embedded: require('/public/images/notice/email.png'), }, voice: { aliyun: require('/public/images/notice/voice.png'), }, sms: { aliyunSms: require('/public/images/notice/sms.png'), }, webhook: { http: require('/public/images/notice/webhook.png'), }, }; export const typeList = { weixin: { corpMessage: '企业消息', officialMessage: '服务号消息', }, dingTalk: { dingTalkMessage: '钉钉消息', dingTalkRobotWebHook: '群机器人消息', }, voice: { aliyun: '阿里云语音', }, sms: { aliyunSms: '阿里云短信', }, email: { embedded: '邮件', }, webhook: { http: 'webhook', }, }; export default (props: NoticeCardProps) => { return (
{props.type}
{/**/} {/* */} {/* {props.name}*/} {/* */} {/**/}
{/*
{typeList[props.type][props.provider] || '暂无'}
*/}
{/*
*/} {/* */} {/* {props.description}*/} {/* */} {/*
*/}
); };