import { X } from "@/components/icons/platform-icons"; import type { ConfiguratorView } from "@/modules/apps/components/configurator/configurator-mapper"; type ConfiguratorHeaderProps = { title: string; activeView: ConfiguratorView; views: ConfiguratorView[]; onViewChange: (view: ConfiguratorView) => void; onClose?: () => void; }; function formatViewLabel(view: ConfiguratorView) { if (view === "classic") return "Classic"; if (view === "compose") return "Docker Compose"; return "Docker Run"; } export function ConfiguratorHeader({ title, activeView, views, onViewChange, onClose, }: ConfiguratorHeaderProps) { return (

{title}

{views.map((view) => ( ))}
{onClose ? ( ) : null}
); }