/** * @license * Copyright 2025 Qwen Team * SPDX-License-Identifier: Apache-2.0 */ import type React from 'react'; import { TerminalIcon, CloseIcon } from './icons/index.js'; interface InfoBannerProps { /** * Whether the banner is visible */ visible: boolean; /** * Callback when the banner is dismissed */ onDismiss: () => void; /** * Optional: Custom message content (if not provided, uses default) */ message?: React.ReactNode; /** * Optional: Custom link text */ linkText?: string; /** * Optional: Callback when the link is clicked */ onLinkClick?: (e: React.MouseEvent) => void; } export const InfoBanner: React.FC = ({ visible, onDismiss, message, linkText = 'Switch back in Settings.', onLinkClick, }) => { if (!visible) { return null; } return (
{/* Icon */} {/* Message */}
{/* Close button */}
); };