+ {sections.map(({ id, label, icon: Icon, content }) => {
+ const expanded = openSection === id;
+ const panelId = `${prefix}-${id}`;
+ return (
+
+
+
+
+
+ {content}
+
+
+ );
+ })}
+
+ );
+}
+
+function DetailBody({
+ tool,
+ prefix,
+ openSection,
+ onToggle,
+}: {
+ tool: ToolCatalogRecord;
+ prefix: string;
+ openSection: DetailSectionId | null;
+ onToggle: (section: DetailSectionId) => void;
+}) {
+ return (
+