"use client" import { ExternalLink, KeyRound, LogOut, Smartphone } from "lucide-react" import { SettingsSectionHeader } from "@/components/gmail/settings/settings-section-header" import { Button } from "@/components/ui/button" import { useAuthLogout } from "@/components/auth/auth-provider" import { authentikUserSettingsUrl } from "@/lib/auth/authentik-user-url" export function CompteSecuritySection() { const signOut = useAuthLogout() const idpUrl = authentikUserSettingsUrl() return ( <>
} title="Mot de passe" description="Modifiez votre mot de passe depuis le portail d'identité de votre organisation." action={ idpUrl ? ( ) : ( ) } /> } title="Validation en deux étapes" description="Ajoutez ou gérez vos appareils de validation (application TOTP, WebAuthn, clés de sécurité)." action={ idpUrl ? ( ) : ( ) } /> } title="Session sur cet appareil" description="Met fin à votre session Ulti sur ce navigateur. Vous devrez vous reconnecter." action={ } />
) } function SecurityCard({ icon, title, description, action, }: { icon: React.ReactNode title: string description: string action: React.ReactNode }) { return (
{icon}

{title}

{description}

{action}
) } function ExternalAction({ href, label }: { href: string; label: string }) { return ( ) } function UnavailableNote() { return ( Portail d'identité non configuré ) }