import { FlowNodeEnum } from '@/enums/flowEnums' export function getComponents(flowKey:string) { if (!flowKey) { return ['negative-verify-description']; } switch(flowKey) { case FlowNodeEnum.FIRST_DISTRIBUTE: return ['negative-distribute']; case FlowNodeEnum.SECOND_DISTRIBUTE: return ['negative-distribute']; case FlowNodeEnum.VERIFY: return ['negative-verify']; case FlowNodeEnum.SECOND_APPROVE: return ['negative-verify-description']; case FlowNodeEnum.FIRST_APPROVE: return ['negative-verify-description']; case FlowNodeEnum.SECOND_EXTENSION_APPROVE: return ['negative-verify-description']; case FlowNodeEnum.FIRST_EXTENSION_APPROVE: return ['negative-verify-description']; case FlowNodeEnum.COMPLETED: return ['negative-verify-description']; } return [] }