({ algo, active, onSelect })
| 17 | } |
| 18 | |
| 19 | const 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 | |
| 29 | const AlgorithmExplorer: React.FC = () => { |
| 30 | const { t, i18n } = useTranslation(); |
nothing calls this directly
no outgoing calls
no test coverage detected