blob: b108fb36f478902046a9ce4a2739f612da598745 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import React, { FC } from 'react';
import { Box, Text } from 'ink';
import { isDone } from '../utils';
const Exit: FC<{ didError?: boolean }> = ({ didError }) =>
isDone ? null : (
<Box marginTop={1} display="flex">
<Text color={didError ? '#FF1639' : '#FFBE2D'}>[abort]</Text>
<Text> astro cancelled</Text>
</Box>
);
export default Exit;
|