summaryrefslogtreecommitdiff
path: root/packages/create-astro/src/components/Exit.tsx
blob: cc3096705021356f6528b7c9331e917021749bc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
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;