get_brand = (state, req) => {
  const logo_id = state.getConfig("site_logo_id", "");
  const locale = req.getLocale();
  const __ = (s) => state.i18n.__({ phrase: s, locale }) || s;
  const name = __(state.getConfig("site_name", "Saltcorn"));
  return {
    name,
    logo: logo_id && logo_id !== "0" ? `/files/serve/${logo_id}` : undefined,
  };
}
Get brand
@param state
@returns {{name: *, logo: (string|undefined)}}