import { internal } from "@app/lib/api"; import { authCookieHeader } from "@app/lib/api/cookies"; import { AxiosResponse } from "axios"; import SettingsSectionTitle from "@app/components/SettingsSectionTitle"; import IdpTable, { IdpRow } from "../../../components/AdminIdpTable"; import { getTranslations } from "next-intl/server"; export default async function IdpPage() { let idps: IdpRow[] = []; try { const res = await internal.get>( `/idp`, await authCookieHeader() ); idps = res.data.data.idps; } catch (e) { console.error(e); } const t = await getTranslations(); return ( <> ); }