import { Form, FormInstance, Input, Select, Typography } from 'antd'; import FormItem from 'antd/lib/form/FormItem'; import { Store } from 'antd/lib/form/interface'; import ROUTES from 'constants/routes'; import { ChannelType, SlackChannel, } from 'container/CreateAlertChannels/config'; import history from 'lib/history'; import React from 'react'; import SlackSettings from './Settings/Slack'; import { Button } from './styles'; const { Option } = Select; const { Title } = Typography; function FormAlertChannels({ formInstance, type, setSelectedConfig, onTypeChangeHandler, // onTestHandler, onSaveHandler, savingState, NotificationElement, title, initialValue, nameDisable = false, }: FormAlertChannelsProps): JSX.Element { return ( <> {NotificationElement}