import React from 'react'; import { THEME, tempColor, pHColor, saltColor } from '../theme.js'; import { MediaConfBar, OxygenConfArc, IntervalBar, MonoTag, SourceBadge } from './Primitives.jsx'; export default function DetailDrawer({ microbe, onClose }) { if (!microbe) return null; return (
e.stopPropagation()} style={{ width: 520, maxWidth: '100%', height: '100%', background: THEME.paper, borderLeft: `1px solid ${THEME.ink}`, padding: '20px 24px', overflow: 'auto', boxShadow: '-12px 0 24px rgba(0,0,0,0.08)', }}>
{microbe.accession} · CheckM {microbe.completeness.toFixed(1)}%
{microbe.name}
{microbe.phylum}
Oxygen
{microbe.O2}
Top media to try
{[ { id: microbe.top_medium_id, name: microbe.top_medium_name, conf: microbe.top_confidence }, { id: microbe.top2_medium_id, name: microbe.top2_medium_name, conf: microbe.top2_confidence }, { id: microbe.top3_medium_id, name: microbe.top3_medium_name, conf: microbe.top3_confidence }, ].filter((x) => x.id).map((m, i) => (
{m.id} {m.name}
))}
); } function PhenoCell({ label, value, unit = '', color, scaleMin, scaleMax }) { return (
{label} {value}{unit}
); }