import React, { useMemo } from 'react'; import { groupTech, TONE_DOT } from '../../lib/techCategories'; interface TechStackPanelProps { techStack: string[]; className?: string; } /** * Detected stack as an engineering specification. * * Numbered hairline rows grouped by architectural category, instead of a cloud * of pills — the reader can still tell backend from frontend from data layer, * but the section reads as a spec sheet rather than as decoration. */ export const TechStackPanel: React.FC = ({ techStack, className = '' }) => { const groups = useMemo(() => groupTech(techStack), [techStack]); const total = useMemo(() => groups.reduce((sum, g) => sum + g.items.length, 0), [groups]); return (

TECHNOLOGY STACK

{total > 0 && ( {total} DETECTED · {groups.length}{' '} {groups.length === 1 ? 'CATEGORY' : 'CATEGORIES'} )}
{groups.length === 0 ? (

No technologies detected. The indexer found no recognisable framework or language manifests.

Detection improves with package.json · pyproject.toml · go.mod · Cargo.toml

) : (
{groups.map(({ meta, items }) => (
    {items.map((item, i) => (
  1. {String(i + 1).padStart(2, '0')} {item}
  2. ))}
))}
)}
); }; export default TechStackPanel;