Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}, !(0, _utils.isEmpty)(messages) && messages.map(({
text,
type
}, i) => _react.default.createElement(_ink.Box, {
key: `msg${i}`
}, type === 'heading' && !isFlaggedStart && _react.default.createElement(_ink.Box, {
marginBottom: 1
}, _react.default.createElement(_ink.Text, {
bold: true
}, `—— ${text} ——`)), type === 'heading' && isFlaggedStart && _react.default.createElement(_ink.Text, {
bold: true
}, `${text}\n`), _react.default.createElement(_ink.Color, {
dim: messages.length - 1 !== i
}, type === 'error' && `💩 ${text}`, type === 'success' && `👌 ${text}`, type === 'message' && `💁 ${text}`, type === 'working' && (messages.length - 1 === i ? _react.default.createElement(_inkSpinner.default, {
type: "runner"
}) : `🏃 `), type === 'working' && ` ${text}`))));
render() {
return _react.default.createElement(_ink.Text, null, this.state.message || _react.default.createElement(_loader.default, null));
}
render() {
return _react.default.createElement(_ink.Text, null, this.state.message || _react.default.createElement(_loader.default, null));
}
render() {
return _react.default.createElement(_ink.Text, null, "Logged you out.");
}
render() {
return _react.default.createElement(_ink.Text, null, this.state.message || _react.default.createElement(_loader.default, null));
}
}, !(0, _utils.isEmpty)(messages) && messages.map(({
text,
type
}, i) => _react.default.createElement(_ink.Box, {
key: `msg${i}`
}, type === 'heading' && !isFlaggedStart && _react.default.createElement(_ink.Box, {
marginBottom: 1
}, _react.default.createElement(_ink.Text, {
bold: true
}, `—— ${text} ——`)), type === 'heading' && isFlaggedStart && _react.default.createElement(_ink.Text, {
bold: true
}, `${text}\n`), _react.default.createElement(_ink.Color, {
dim: messages.length - 1 !== i
}, type === 'error' && `💩 ${text}`, type === 'success' && `👌 ${text}`, type === 'message' && `💁 ${text}`, type === 'working' && (messages.length - 1 === i ? _react.default.createElement(_inkSpinner.default, {
type: "runner"
}) : `🏃 `), type === 'working' && ` ${text}`))));