import Form from 'sentry/components/forms/form'; import Panel from 'sentry/components/panels/panel'; import {t} from 'sentry/locale'; import {OrganizationSummary} from 'sentry/types'; import withOrganizations from 'sentry/utils/withOrganizations'; import { NotificationSettingsByProviderObject, NotificationSettingsObject, } from 'sentry/views/settings/account/notifications/constants'; import {StyledJsonForm} from 'sentry/views/settings/account/notifications/notificationSettingsByProjects'; import { getParentData, getParentField, } from 'sentry/views/settings/account/notifications/utils'; type Props = { notificationSettings: NotificationSettingsObject; notificationType: string; onChange: ( changedData: NotificationSettingsByProviderObject, parentId: string ) => NotificationSettingsObject; onSubmitSuccess: () => void; organizations: OrganizationSummary[]; }; function NotificationSettingsByOrganization({ notificationType, notificationSettings, onChange, onSubmitSuccess, organizations, }: Props) { return (
{ return getParentField( notificationType, notificationSettings, organization, onChange ); })} />
); } export default withOrganizations(NotificationSettingsByOrganization);