File tree Expand file tree Collapse file tree
packages/cli/src/ui/privacy Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import { Box , Newline , Text } from 'ink' ;
88import { RadioButtonSelect } from '../components/shared/RadioButtonSelect.js' ;
99import { usePrivacySettings } from '../hooks/usePrivacySettings.js' ;
10- import { CloudPaidPrivacyNotice } from './CloudPaidPrivacyNotice.js' ;
10+
1111import type { Config } from '@google/gemini-cli-core' ;
1212import { theme } from '../semantic-colors.js' ;
1313import { useKeypress } from '../hooks/useKeypress.js' ;
@@ -26,7 +26,10 @@ export const CloudFreePrivacyNotice = ({
2626
2727 useKeypress (
2828 ( key ) => {
29- if ( privacyState . error && key . name === 'escape' ) {
29+ if (
30+ ( privacyState . error || privacyState . isFreeTier === false ) &&
31+ key . name === 'escape'
32+ ) {
3033 onExit ( ) ;
3134 }
3235 } ,
@@ -49,7 +52,19 @@ export const CloudFreePrivacyNotice = ({
4952 }
5053
5154 if ( privacyState . isFreeTier === false ) {
52- return < CloudPaidPrivacyNotice onExit = { onExit } /> ;
55+ return (
56+ < Box flexDirection = "column" marginY = { 1 } >
57+ < Text bold color = { theme . text . accent } >
58+ Gemini Code Assist Privacy Notice
59+ </ Text >
60+ < Newline />
61+ < Text >
62+ https://developers.google.com/gemini-code-assist/resources/privacy-notices
63+ </ Text >
64+ < Newline />
65+ < Text color = { theme . text . secondary } > Press Esc to exit.</ Text >
66+ </ Box >
67+ ) ;
5368 }
5469
5570 const items = [
You can’t perform that action at this time.
0 commit comments