import { ActionValue , DynamicValue , ValueStatus } from "mendix" ; export function dynamicValue < T > ( value ? , loading ? ) { if ( loading ) { return { status : ValueStatus . Loading , value } ; } return value ? { status : ValueStatus . Available , value } : { status : ValueStatus . Unavailable , value : undefined } ; } export function actionValue ( canExecute = true , isExecuting = false ) { return { canExecute , isExecuting , execute : jest . fn ( ) } ; }