/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import React from 'react'; import { Box, Text } from 'ink'; import { Colors } from '../colors.js'; import { shortenPath, tildeifyPath, Config } from '@gemini-code/server'; import { ConsoleSummaryDisplay } from './ConsoleSummaryDisplay.js'; interface FooterProps { config: Config; debugMode: boolean; debugMessage: string; cliVersion: string; corgiMode: boolean; errorCount: number; showErrorDetails: boolean; } export const Footer: React.FC = ({ config, debugMode, debugMessage, cliVersion, corgiMode, errorCount, showErrorDetails, }) => ( {shortenPath(tildeifyPath(config.getTargetDir()), 70)} {debugMode && ( {' ' + (debugMessage || '--debug')} )} {/* Middle Section: Centered Sandbox Info */} {process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec' ? ( {process.env.SANDBOX.replace(/^gemini-(?:code-)?/, '')} ) : process.env.SANDBOX === 'sandbox-exec' ? ( sandbox-exec ({process.env.SEATBELT_PROFILE}) ) : ( no sandbox (see README) )} {/* Right Section: Gemini Label and Console Summary */} {config.getModel()} {corgiMode && ( | `) )} {!showErrorDetails && errorCount > 0 && ( | )} );