/** @format */ import React from 'react'; import Modal from '../../../baseComponents/Modal'; import RelationWarningChart from './RelationWarningChart'; import { Container, SubTitle } from './styled.subModal'; /** * @description 房屋列表 */ interface SubModalProps { item: Record | null; visible: boolean; refreshKey: number; } const SubModal = (props: SubModalProps) => { const { item, refreshKey, ...otherProps } = props; if (!item) { return null; } return ( 历史关联预警 关联预警记录
{item.warningList && item.warningList.length ? item.warningList.map( (item: Record, index: number) => (
info {item.type} {item.date}
), ) : null}
); }; export default SubModal;