tableCard = (tables, req) => ({
  type: "card",
  class: "welcome-page-entity-list mt-1",
  title: link("/table", req.__("Tables")),
  contents:
    (tables.length <= 1
      ? p(
          { class: "mt-2 pe-2" },
          i(req.__("Tables organise data by fields and rows."))
        )
      : "") + tableTable(tables, req),
  bodyClass: "py-0 pe-0",
  footer: div(
    { class: "text-nowrap", style: { overflowX: "hidden" } },
    a({ href: `/table/new`, class: "btn btn-primary" }, req.__("Create table")),
    a(
      {
        href: `/table/create-from-csv`,
        class: "btn btn-secondary ms-2",
      },
      req.__("CSV upload")
    )
  ),
})
Tables Card
@param {*} tables
@param {object} req
@returns {object}