2026-06-16 10:12:10 +02:00
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
|
import { AlertTriangle } from "lucide-react";
|
2026-06-19 11:18:20 +02:00
|
|
|
import Banner from "./Banner";
|
2026-06-16 10:12:10 +02:00
|
|
|
|
|
|
|
|
// Permanent, non-dismissible bar shown to the shared demo account so it's always clear the
|
|
|
|
|
// state is communal. (Replaces the old login-time toast, which re-popped on every reload.)
|
|
|
|
|
export default function DemoBanner() {
|
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
return (
|
2026-06-19 11:18:20 +02:00
|
|
|
<Banner tone="warning" icon={AlertTriangle}>
|
|
|
|
|
<span className="font-semibold">{t("common.demoTitle")}</span>
|
|
|
|
|
<span className="text-muted"> — {t("common.demoSharedNotice")}</span>
|
|
|
|
|
</Banner>
|
2026-06-16 10:12:10 +02:00
|
|
|
);
|
|
|
|
|
}
|