import { useEffect } from "react"; import { Button, List, Typography, Flex } 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 FrontchannelLogout(props: PageProps, I18n>) { const { kcContext, i18n, doUseDefaultCss, Template, classes } = props; const { logout } = kcContext; const { msg, msgStr } = i18n; useEffect(() => { if (logout.logoutRedirectUri) { window.location.replace(logout.logoutRedirectUri); } }, []); return (