import { GetServerSideProps } from 'next'; import Link from 'next/link'; import React from 'react'; import config from '../lib/env'; import { IdPMetadata } from '../types'; import { getEntityId } from 'lib/entity-id'; const Home: React.FC<{ metadata: IdPMetadata; params: any }> = ({ metadata, params }) => { const namespace = params.namespace; const { ssoUrl, entityId, certificate } = metadata; const namespaceEntityId = getEntityId(entityId, namespace); const metadataDownloadUrl = '/api' + (namespace ? `/namespace/${namespace}` : '') + '/saml/metadata?download=true'; const metadataUrl = '/api' + (namespace ? `/namespace/${namespace}` : '') + '/saml/metadata'; return (