UNPKG

gensx

Version:
8 lines 448 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Box, Text } from "ink"; import Spinner from "ink-spinner"; // By default the message is empty, so just the spinner is shown export function LoadingSpinner({ message = "" }) { return (_jsx(Box, { children: _jsxs(Text, { children: [_jsx(Spinner, { type: "dots" }), " ", _jsx(Text, { dimColor: true, children: message })] }) })); } //# sourceMappingURL=LoadingSpinner.js.map