refactor(ui): extract SessionBrowser static ui components (#22348)

This commit is contained in:
Abhi
2026-03-13 13:25:13 -04:00
committed by GitHub
parent b4bcd1a015
commit 3b601b3d90
6 changed files with 117 additions and 32 deletions
@@ -0,0 +1,19 @@
/**
* @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';
/**
* Empty state component displayed when no sessions are found.
*/
export const SessionBrowserEmpty = (): React.JSX.Element => (
<Box flexDirection="column" paddingX={1}>
<Text color={Colors.Gray}>No auto-saved conversations found.</Text>
<Text color={Colors.Gray}>Press q to exit</Text>
</Box>
);