ultisuite-client/components/gmail/email-view/remote-content-banner.tsx
2026-05-25 13:52:40 +02:00

33 lines
727 B
TypeScript

"use client"
export function RemoteContentBanner({
senderEmail,
onShowOnce,
onAlwaysShow,
}: {
senderEmail: string
onShowOnce: () => void
onAlwaysShow: () => void
}) {
return (
<p className="mb-3 text-sm leading-snug text-muted-foreground">
Le contenu distant a é masqué&nbsp;:{" "}
<button
type="button"
onClick={onShowOnce}
className="text-primary hover:underline"
>
afficher le contenu distant
</button>
{" — "}
<button
type="button"
onClick={onAlwaysShow}
className="text-primary hover:underline"
>
toujours afficher le contenu distant venant de {senderEmail}
</button>
</p>
)
}