const createEntityAction = action(async (data: any) => { console.log({ data }); // try { // const agent = await addAgent(data); // } catch (error) { // throw error; // } });