/** * Audience banner for the "Report bugs and issues" page. Two tones: * - "community": neutral, for everyone outside the managed Cloud. * - "support": orange/netbird accent, for paying NetBird Cloud customers. * * @param {'community'|'support'} [tone='community'] * @param {string} [id] - Optional id so the banner can be a scroll target * @param {string} title * @param {string} [badge] - Small pill (e.g. "Free", "Cloud customers") * @param {string} description * @param {Array<{label: string, href: string}>} [links] - Bullet links to the * section's channels / anchors. */ export function SupportBanner({ tone = 'community', id, title, badge, description, links = [], }) { const isSupport = tone === 'support' const accent = isSupport ? 'border-[#F28C28]' : 'border-zinc-300 dark:border-zinc-600' const badgeClass = isSupport ? 'bg-[#F28C28]/10 text-[#C2410C] ring-[#F28C28]/30 dark:text-[#FFAC1C] dark:ring-[#F28C28]/40' : 'bg-zinc-900/5 text-zinc-600 ring-zinc-900/10 dark:bg-white/5 dark:text-zinc-400 dark:ring-white/10' return (
{(title || badge) && (
{title && (

{title}

)} {badge && ( {badge} )}
)} {description && (

{description}

)} {links.length > 0 && ( )}
) }