import os
from fasthtml.common import *
def render_paypal_donation_widget():
"""Génère le bouton de don PayPal pour l'interface sidebar avec le lien configuré."""
# Récupération depuis l'environnement ou utilisation directe de votre lien officiel
paypal_url = os.environ.get("PAYPAL_DONATION_LINK", "https://www.paypal.com/donate/?hosted_button_id=2B6T9UESCN2W6")
return Div(
A(
"☕ Soutenir l'hébergeur",
href=paypal_url,
target="_blank",
cls="export-btn",
style="text-align: center; color: #00e5ff; border-color: #00e5ff; display: block; text-decoration: none; margin-top: 10px;"
),
style="margin-top: 10px;"
)