import { X } from "lucide-react"; interface SetupWarningBannerProps { /** Whether an AI provider is connected */ hasAiProvider: boolean; /** Whether GitHub is connected */ hasGithub: boolean; /** Optional: compact mode for inline use (QuickEntryBox) */ compact?: boolean; /** Optional callback to dismiss the banner */ onDismiss?: () => void; } interface WarningItem { key: "ai" | "github"; title: string; description: string; } export function SetupWarningBanner({ hasAiProvider, hasGithub, compact = false, onDismiss, }: SetupWarningBannerProps) { if (hasAiProvider && hasGithub) { return null; } const dismissButton = onDismiss ? ( ) : null; if (compact) { return (
⚠ Setup incomplete — AI and/or GitHub features will be limited.
{dismissButton}{warning.description}