import React from 'react'; import { ExecutionOptionsPageContent } from './ExecutionOptionsPageContent'; import { MetadataPageContent } from './MetadataPageContent'; import { NotificationsPageContent } from './NotificationsPageContent'; import { ParametersPageContent } from './ParametersPageContent'; import { TriggersPageContent } from './TriggersPageContent'; import type { Application } from '../../../application'; import type { IPipeline } from '../../../domain'; import { PageNavigator, PageSection } from '../../../presentation'; import { ReactInjector } from '../../../reactShims/react.injector'; export interface ITriggersProps { application: Application; pipeline: IPipeline; fieldUpdated: () => void; updatePipelineConfig: (changes: Partial) => void; revertCount: number; } export function Triggers(props: ITriggersProps) { const pipeline = props.pipeline; // KLUDGE: This value is used as a React key when rendering the Triggers. // Whenever the pipeline is reverted, this causes the Triggers to remount and reset formik state. const revertCountKLUDGE = props.revertCount; return ( ); }