import { getKcClsx } from "keycloakify/account/lib/kcClsx"; import type { PageProps } from "keycloakify/account/pages/PageProps"; import type { KcContext } from "../KcContext"; import type { I18n } from "../i18n"; export default function Applications(props: PageProps, I18n>) { const { kcContext, i18n, doUseDefaultCss, classes, Template } = props; const { kcClsx } = getKcClsx({ doUseDefaultCss, classes }); const { url, applications: { applications }, stateChecker } = kcContext; const { msg, advancedMsg } = i18n; return ( ); } function isArrayWithEmptyObject(variable: any): boolean { return Array.isArray(variable) && variable.length === 1 && typeof variable[0] === "object" && Object.keys(variable[0]).length === 0; }