MCPcopy Create free account
hub / github.com/Oslonline/dithering-studio / AlgorithmCard

Function AlgorithmCard

src/pages/AlgorithmExplorer.tsx:19–27  ·  view source on GitHub ↗
({ algo, active, onSelect })

Source from the content-addressed store, hash-verified

17}
18
19const AlgorithmCard: React.FC<{ algo: AlgorithmDetail; active: boolean; onSelect: () => void }> = ({ algo, active, onSelect }) => (
20 <button onClick={onSelect} className={`w-full rounded-md border px-3 py-2 text-left transition hover:border-blue-600 hover:bg-neutral-900/40 ${active ? "border-blue-600 bg-neutral-900/60" : "border-neutral-800 bg-neutral-900/20"}`}>
21 <div className="flex items-center justify-between">
22 <span className="font-mono text-[11px] tracking-wide text-gray-200">{algo.name}</span>
23 <span className="badge !text-[9px]">{algo.category}</span>
24 </div>
25 <p className="mt-1 line-clamp-2 text-[10px] leading-snug text-gray-400">{algo.overview}</p>
26 </button>
27);
28
29const AlgorithmExplorer: React.FC = () => {
30 const { t, i18n } = useTranslation();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected