mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-25 05:21:03 -07:00
17 lines
480 B
TypeScript
17 lines
480 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { useSettings } from '../contexts/SettingsContext.js';
|
|
import type { LoadedSettings } from '../../config/settings.js';
|
|
|
|
export const isAlternateBufferEnabled = (settings: LoadedSettings): boolean =>
|
|
settings.merged.ui?.useAlternateBuffer === true;
|
|
|
|
export const useAlternateBuffer = (): boolean => {
|
|
const settings = useSettings();
|
|
return isAlternateBufferEnabled(settings);
|
|
};
|