actionsTab = async (req, triggers) => {
  const base_url = get_base_url(req);

  return div(
    { class: "pb-3" },
    triggers.length <= 1 &&
      p(
        { class: "mt-2 pe-2" },
        i(req.__("Triggers run actions in response to events."))
      ),
    triggers.length === 0
      ? p(req.__("No triggers"))
      : mkTable(
          [
            {
              label: req.__("Name"),
              key: (tr) => a({ href: `actions/configure/${tr.id}` }, tr.name),
            },
            { label: req.__("Action"), key: "action" },
            {
              label: req.__("Table or Channel"),
              key: (r) => r.table_name || r.channel,
            },
            {
              label: req.__("When"),
              key: (act) =>
                act.when_trigger +
                (act.when_trigger === "API call"
                  ? a(
                      {
                        href: `javascript:ajax_modal('/admin/help/API%20actions?name=${act.name}')`,
                      },
                      i({ class: "fas fa-question-circle ms-1" })
                    )
                  : ""),
            },
          ],
          triggers
        ),
    a(
      { href: "/actions/new", class: "btn btn-secondary my-3" },
      req.__("Add trigger")
    )
  );
}
Actions (Triggers) Tab
@param {object} req
@param triggers
@returns {Promise<div>}