import React, { FC } from 'react'; import { Alert, CollapsableSection } from '@grafana/ui'; import { NotificationChannelSecureFields, NotificationChannelType } from '../../../types'; import { NotificationSettingsProps } from './NotificationChannelForm'; import { NotificationChannelOptions } from './NotificationChannelOptions'; interface Props extends NotificationSettingsProps { selectedChannel: NotificationChannelType; secureFields: NotificationChannelSecureFields; resetSecureField: (key: string) => void; } export const ChannelSettings: FC = ({ control, currentFormValues, errors, selectedChannel, secureFields, register, resetSecureField, }) => { return ( {selectedChannel.info !== '' && } !o.required)} currentFormValues={currentFormValues} register={register} errors={errors} control={control} onResetSecureField={resetSecureField} secureFields={secureFields} /> ); };