// Tools — orchestrator for Herramientas tab.
// Sub-tabs: Paciente · Calculadoras · Mi calculadora · Escalas
// All heavy lifting lives in Calculators.jsx / PatientPanel.jsx / CustomCalc.jsx.
const { useState: useTS } = React;
// ─── Scales viewer (kept here, lightweight) ────────────────
function ScalesGallery() {
const [active, setActive] = useTS(null);
return (
<>
{[
['paciente', 'Paciente'],
['calc', 'Calculadoras', calcs.length],
['mine', 'Mi calculadora'],
['scales', 'Escalas', ESCALAS.length],
].map(([k, l, n]) => (
))}
{cat === 'paciente' && window.PatientPanel &&
}
{cat === 'calc' && (
)}
{cat === 'mine' && window.CustomCalc &&
}
{cat === 'scales' &&
}
);
}
window.ToolsSection = ToolsSection;