import { CheckCircle2 } from "lucide-react" interface BuilderHeaderProps { preselectedPlugin?: { name: string description: string imageUrl?: string featured?: boolean includes?: string[] } | null } export function BuilderHeader({ preselectedPlugin }: BuilderHeaderProps) { return ( <>

{preselectedPlugin ? "Plugin build" : "Quick build"}

{preselectedPlugin ? `Build firmware for ${preselectedPlugin.name}` : "Flash a custom firmware version"}

{preselectedPlugin ? `Select a compatible Meshtastic target and configure your build for ${preselectedPlugin.name}. We'll send you to the build status page as soon as it starts.` : "Choose your Meshtastic target, adjust optional modules, and queue a new build instantly. We'll send you to the build status page as soon as it starts."}

{preselectedPlugin && (
{preselectedPlugin.imageUrl && ( {`${preselectedPlugin.name} )}

{preselectedPlugin.name}

{preselectedPlugin.featured && ( Featured )}

{preselectedPlugin.description}

{preselectedPlugin.includes && preselectedPlugin.includes.length > 0 && (

Compatible with: {preselectedPlugin.includes.join(", ")}

)}
)} ) }