/** * @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'; const Kbd = ({ name, shortcut }: { name: string; shortcut: string }) => ( <> {name}: {shortcut} ); /** * Navigation help component showing keyboard shortcuts. */ export const NavigationHelpDisplay = (): React.JSX.Element => ( {' '} {' '} {' '} {' '} {' '} {' '} ); /** * Search input display component. */ export const SearchModeDisplay = ({ state, }: { state: SessionBrowserState; }): React.JSX.Element => ( Search: {state.searchQuery} (Esc to cancel) ); /** * No results display component for empty search results. */ export const NoResultsDisplay = ({ state, }: { state: SessionBrowserState; }): React.JSX.Element => ( No sessions found matching '{state.searchQuery}'. );