import * as React from 'react'; import * as cn from './Baseline.styles'; export interface BaselineTool { tool: 'bun' | 'node' | 'npm' | 'pnpm' | string supported: boolean; label?: React.ReactNode; } export interface BaselineProps extends React.HTMLAttributes { title: string; toolGroups: BaselineTool[][]; } export function Baseline({ title, toolGroups, ...props }: BaselineProps) { return (
{title}
{toolGroups.map((group, i) => ( {group.map((tool, j) => ( {tool.label ? tool.label : null} ))} ))}
); }