import { useState } from 'react';
import { useData } from '../data/context';
import { hasLabel } from '../content/ui';
import { SourceChip } from './SourceChip';
import { L, ResultChip, V, Who } from './text';
import { useHydrated } from './hydrated';
import { BASE } from '../routes';
const p = 'verifications';
/** Glyph from the tile's data status: ✓ only for MATCH, ✗ for MISMATCH, … for anything else. */
export const glyphKey = (r: string) => (r === 'MATCH' || r === 'MISMATCH' ? r : 'pending');
function CheckerName({ checker }: { checker: string }) {
return hasLabel(`checker.${checker}`) ? : {checker};
}
export { CheckerName };
function Legend() {
return (
);
}
function TileInner({ k, result, who }: { k: number; result: string; who: string }) {
return (
<>
{' '}
>
);
}
/** 37 tiles. Interactive: links to each segment's rows before hydration, then real