UNPKG

debt-collector

Version:

a nodejs tool to identify, track and mesure technical debt

9 lines (8 loc) 382 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Text } from 'ink'; export const ConfigErrors = ({ isConfigValid, configErrors, }) => { const shouldShowErrors = isConfigValid === false && configErrors && configErrors.length > 0; return shouldShowErrors ? configErrors.map((error, i) => (_jsx(Text, { color: "red", children: error }, i))) : null; };