Download packages/cli/src/ui/components/SessionBrowser/SessionBrowserError.tsx from SaylorTwift/gemini-cli: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/ui/components/SessionBrowser/SessionBrowserError.tsx
- Command line
-
hf download hf://SaylorTwift/gemini-cli/packages/cli/src/ui/components/SessionBrowser/SessionBrowserError.tsx
-
curl -L -o SessionBrowserError.tsx https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/ui/components/SessionBrowser/SessionBrowserError.tsx
614 Bytes
| /** | |
| * @license | |
| * Copyright 2026 Google LLC | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| import type React from 'react'; | |
| import { Box, Text } from 'ink'; | |
| import { Colors } from '../../colors.js'; | |
| import type { SessionBrowserState } from '../SessionBrowser.js'; | |
| /** | |
| * Error state component displayed when session loading fails. | |
| */ | |
| export const SessionBrowserError = ({ | |
| state, | |
| }: { | |
| state: SessionBrowserState; | |
| }): React.JSX.Element => ( | |
| <Box flexDirection="column" paddingX={1}> | |
| <Text color={Colors.AccentRed}>Error: {state.error}</Text> | |
| <Text color={Colors.Gray}>Press q to exit</Text> | |
| </Box> | |
| ); | |