--- import type { Announcement } from '../lib/types'; interface Props { announcement: Announcement; } const { announcement } = Astro.props; const bgColorClass = { info: 'bg-[rgb(var(--accent))] text-[rgb(var(--accent-text))]', warning: 'bg-yellow-500 text-white', success: 'bg-emerald-500 text-white' }[announcement.type]; // Create a simple hash of the announcement content const announcementHash = btoa(JSON.stringify({ message: announcement.message, type: announcement.type, link: announcement.link })); ---