Files
scrm.antd/src/pages/ChatLogs/components/ChatVote.tsx

20 lines
676 B
TypeScript
Raw Normal View History

2023-04-13 17:36:49 +08:00
import { IChatItem } from '../ChatLogsType';
export const ChatVote: React.FC<IChatItem> = (props) => {
const votetype: any = { 101: '发起投票', 102: '参与投票' };
function content() {
return (
<div style={{ display: 'flex', color: '#000', flexDirection: 'column' }}>
<div style={{ wordBreak: 'break-all' }}>{props.chat?.votetitle}</div>
<div style={{ wordBreak: 'break-all' }}>{props.chat?.voteitem}</div>
<div style={{ borderTop: '1px solid #ddd', color: '#999', marginTop: 8, paddingTop: 8 }}>
[{votetype[props.chat?.votetype as string]}]
</div>
</div>
);
}
return <>{content()}</>;
};