/* Shared small components */
function PaintMap({ car, compact }) {
const [sel, setSel] = React.useState(null);
const p = sel ? PANELS.find(x => x.k === sel) : null;
if (!car.paint) return
{car.notes || "Paint gauge readings are in the inspection report. Ask on WhatsApp."}
;
return (
{!compact && (
{p ? {p.n} · {car.paint[p.k]}µm → {paintTxt(car.paint[p.k])} : car.notes}
)}
);
}
function BatteryBar({ soh, big }) {
const col = soh >= 90 ? "var(--pass)" : soh >= 82 ? "var(--tag)" : "var(--fail)";
return (
);
}
function Ph({ label, ratio = "16/10", children }) {
return (
{children}
{label}
);
}
function StatusTag({ s }) {
return {s};
}
Object.assign(window, { PaintMap, BatteryBar, Ph, StatusTag });