33 lines
727 B
TypeScript
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 été masqué :{" "}
|
|
<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>
|
|
)
|
|
}
|