// H2Learn — Match Detail screen // Three layouts: Side-by-side · Narrative · Signal dashboard (function() { const D = window.H2Data; const { useState } = React; const MatchScreen = () => { const [layout, setLayout] = useState('side'); const [matchId, setMatchId] = useState('m_01'); const match = D.MATCHES.find(m => m.id === matchId) || D.MATCHES[0]; const a = D.byId(match.a), b = D.byId(match.b); const ka = D.kindOf(match.a), kb = D.kindOf(match.b); const meta = window.RelMeta[match.type] || window.RelMeta.Similarity; return (
{match.summary}
{match.summary}
{body}
| Signal | Source data | Score | Weight |
|---|---|---|---|
| {s.name} | {s.source} | {s.score}% | {s.weight.toFixed(2)} |