UNPKG

@roots/bud

Version:

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

12 lines (11 loc) 691 B
import { jsx as _jsx, jsxs as _jsxs } from "@roots/bud-support/jsx-runtime"; import { platform } from 'node:os'; import { LabelBox } from '@roots/bud/cli/components/LabelBox'; import figures from '@roots/bud-support/figures'; import { Box, Text } from '@roots/bud-support/ink'; export const Platform = () => { const os = platform(); const error = os === `win32`; if (!error) return (_jsx(LabelBox, { flexDirection: "row", label: "Platform", children: _jsxs(Box, { flexDirection: "row", gap: 1, children: [!error ? (_jsx(Text, { color: "green", children: figures.tick })) : (_jsx(Text, { color: "red", children: figures.cross })), _jsx(Text, { children: os })] }) })); };