UNPKG

vanta-auditor-tui

Version:

Beautiful terminal UI for exporting Vanta audit evidence with ZIP support and progress tracking

19 lines 951 B
import React from 'react'; import { Box, Text } from 'ink'; import { theme } from '../../theme.js'; import figures from 'figures'; export function StepIndicator({ steps }) { return (React.createElement(Box, { marginBottom: 1 }, steps.map((step, index) => (React.createElement(React.Fragment, { key: index }, index > 0 && (React.createElement(Text, { color: theme.colors.dim }, " \u2192 ")), React.createElement(Box, null, React.createElement(Text, { color: step.status === 'completed' ? theme.colors.success : step.status === 'active' ? theme.colors.primary : theme.colors.dim }, step.status === 'completed' ? figures.tick : step.status === 'active' ? figures.pointer : figures.circle, " ", step.label))))))); } export default StepIndicator; //# sourceMappingURL=StepIndicator.js.map