import InputText from "components/Inputs/InputText"; import InputYaml from 'components/Inputs/InputYaml'; import { ServiceAction } from "types/automations/actions"; import { OptionManager, updateActionData } from './OptionManager'; export const ActionCallServiceState: OptionManager = { defaultState: () => ({ service: "", target: "", data: {}, }), isReady: ({ service, alias, target }) => ( service !== '' && alias !== '' && target !== '' ), renderOptionList: (state, setState) => { const { service, alias = "", target } = state; const update = updateActionData(state, setState); return <> update({ alias })} /> update({ service })} /> update({ target })} /> } }