import { IconInfoCircle } from "@tabler/icons-react"; import { GLOBAL_ANNOUNCEMENT_ENABLED, GLOBAL_ANNOUNCEMENT_MESSAGE } from "@/lib/env-config"; /** * Small, site-wide banner for planned downtime / maintenance notices. * * Controlled entirely through build-time env vars so it can be toggled from * Vercel without a code change: * - NEXT_PUBLIC_GLOBAL_ANNOUNCEMENT_ENABLED ("true" to show) * - NEXT_PUBLIC_GLOBAL_ANNOUNCEMENT_MESSAGE (the copy to display) */ export function GlobalAnnouncement() { const message = GLOBAL_ANNOUNCEMENT_MESSAGE.trim(); if (!GLOBAL_ANNOUNCEMENT_ENABLED || !message) { return null; } return (
{message}
); }