import React from 'react'; import classNames from '@pansy/classnames'; import { APP_TYPE } from '../../types'; import { Button, Affix } from 'antd'; import NoticeRulesList from '../notice-rules-list'; import IconFont from '@sensoro/library/lib/components/icon-font'; import { useNoticeContext } from '../notice-context'; import styles from './index.less'; export interface NoticeFormProps { className?: string; editable?: boolean; onChange?: (value: boolean) => void; } const NoticeForm: React.FC = props => { const { className } = props; const { category, eventData, noticeData, onEventRule, onNoticeRule, onUnavailable, loading, change, onSubmit, disabled, editable, } = useNoticeContext(); return (
{change && ( 预警通知规则已经修改,请注意提交 )}
); }; export default NoticeForm;