mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 07:56:56 +00:00
23 lines
475 B
TypeScript
23 lines
475 B
TypeScript
|
|
import { Form } from 'antd';
|
||
|
|
import FormAlertRules from 'container/FormAlertRules';
|
||
|
|
import React from 'react';
|
||
|
|
import { AlertDef } from 'types/api/alerts/def';
|
||
|
|
|
||
|
|
function CreateRules({ initialValue }: CreateRulesProps): JSX.Element {
|
||
|
|
const [formInstance] = Form.useForm();
|
||
|
|
|
||
|
|
return (
|
||
|
|
<FormAlertRules
|
||
|
|
formInstance={formInstance}
|
||
|
|
initialValue={initialValue}
|
||
|
|
ruleId={0}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
interface CreateRulesProps {
|
||
|
|
initialValue: AlertDef;
|
||
|
|
}
|
||
|
|
|
||
|
|
export default CreateRules;
|