Using $send in a custom action

@nickmason thanks for reaching out and I apologize for the delay.

I’m in the process of writing docs for this, but in component actions, you have access to $send functions within $.send (note the period), where $ is provided as a property of the parameter we pass to component actions:

async run({ $ }) {
  $.send.sql({
    table: "component_action_test",
    payload: {
      foo: "bar",
    },
  });
},

Let me know if that helps.