wrap = (contents, noCard, req, page) => ({
  above: [
    {
      type: "breadcrumbs",
      crumbs: [
        { text: req.__("Pages"), href: "/pageedit" },
        page
          ? { href: `/page/${encodeURIComponent(page.name)}`, text: page.name }
          : { text: req.__("New") },
      ],
    },
    {
      type: noCard ? "container" : "card",
      title: page ? page.name : req.__("New"),
      titleAjaxIndicator: true,
      contents,
    },
  ],
})
@param {*} contents
@param {*} noCard
@param {object} req
@param {*} page
@returns {*}