'use client' import * as React from 'react' import { ArrowLeft, Wrench, MessageSquare } from 'lucide-react' import { cn } from '@open-mercato/shared/lib/utils' import type { PalettePhase, ToolInfo } from '../../types' interface CommandHeaderProps { phase: PalettePhase selectedTool: ToolInfo | null onBack: () => void } export function CommandHeader({ phase, selectedTool, onBack }: CommandHeaderProps) { // Only show header when not in idle phase if (phase === 'idle') { return null } // Show routing header if (phase === 'routing') { return (
Processing...
) } // Show chatting/confirming/executing header return (
{selectedTool ? (

{selectedTool.name}

) : (

Chat

)}
) }