UNPKG

@roots/bud

Version:

Configurable, extensible build tools for modern single and multi-page web applications

12 lines (11 loc) 584 B
import { jsx as _jsx } from "@roots/bud-support/jsx-runtime"; import { LabelBox } from '@roots/bud/cli/components/LabelBox'; import { Box, Text } from '@roots/bud-support/ink'; export const Extensions = ({ extensions, label, }) => { if (!extensions?.length) return null; return (_jsx(LabelBox, { label: label, children: extensions.map(([name, extension], i) => (_jsx(Item, { name: name }, `extension-${name}-${i}`))) })); }; const Item = ({ name }) => { return (_jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: "white", children: name }) })); };