import React from 'react'; import { useTranslation } from 'react-i18next'; interface OIDCProvider { slug: string; name: string; } interface OIDCProviderButtonsProps { providers: OIDCProvider[]; } const OIDCProviderButtons: React.FC = ({ providers, }) => { const { t } = useTranslation(); const handleProviderClick = (slug: string) => { window.location.href = `/api/oidc/auth/${slug}`; }; if (providers.length === 0) { return null; } return (
{providers.map((provider) => ( ))}
); }; export default OIDCProviderButtons;