import { Typography, Button, Space } from "antd"; import type { PageProps } from "keycloakify/login/pages/PageProps"; import type { KcContext } from "../KcContext"; import type { I18n } from "../i18n"; const { Text } = Typography; export default function Info(props: PageProps, I18n>) { const { kcContext, i18n, Template } = props; const { advancedMsgStr, msg } = i18n; const { messageHeader, message, requiredActions, skipLink, pageRedirectUri, actionUri, client } = kcContext; // Prepare the message content with required actions if present const getMessageContent = () => { let html = message.summary; if (requiredActions) { html += ""; html += requiredActions.map(requiredAction => advancedMsgStr(`requiredAction.${requiredAction}`)).join(", "); html += ""; } return html; }; // Determine which action link to show const renderActionLink = () => { if (skipLink) { return null; } if (pageRedirectUri) { return ( ); } if (actionUri) { return ( <> ); } if (client.baseUrl) { return ( <> ); } return null; }; return ( ); }