import React, { FC } from 'react'; import { AlertManagerCortexConfig } from 'app/plugins/datasource/alertmanager/types'; import { GRAFANA_RULES_SOURCE_NAME } from '../../utils/datasource'; import { CloudReceiverForm } from './form/CloudReceiverForm'; import { GrafanaReceiverForm } from './form/GrafanaReceiverForm'; interface Props { config: AlertManagerCortexConfig; alertManagerSourceName: string; } export const NewReceiverView: FC = ({ alertManagerSourceName, config }) => { if (alertManagerSourceName === GRAFANA_RULES_SOURCE_NAME) { return ; } else { return ; } };