"use client" import { Button } from "@/components/ui/button" import { useAuthReady } from "@/lib/api/use-auth-ready" export function SettingsSyncBanner({ isFetching, isError, onRetry, }: { isFetching?: boolean isError?: boolean onRetry?: () => void }) { const { ready, authenticated } = useAuthReady() if (!ready || isFetching) { return null } if (!authenticated) { return (

Connectez-vous pour synchroniser avec le serveur. Les réglages locaux restent disponibles hors ligne.

) } if (isError) { return } return null } function SyncErrorBanner({ onRetry }: { onRetry?: () => void }) { return (
Échec de synchronisation avec le serveur. {onRetry ? ( ) : null}
) }