24 lines
471 B
TypeScript
24 lines
471 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { Box, Text } from 'ink';
|
|
import { Colors } from '../colors.js';
|
|
|
|
interface UpdateNotificationProps {
|
|
message: string;
|
|
}
|
|
|
|
export const UpdateNotification = ({ message }: UpdateNotificationProps) => (
|
|
<Box
|
|
borderStyle="round"
|
|
borderColor={Colors.AccentYellow}
|
|
paddingX={1}
|
|
marginY={1}
|
|
>
|
|
<Text color={Colors.AccentYellow}>{message}</Text>
|
|
</Box>
|
|
);
|