diff options
| author | Tommaso Sciortino <[email protected]> | 2025-06-27 12:07:38 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-27 19:07:38 +0000 |
| commit | a2a46c7c6700edc6840faa2675d92695d2d3104d (patch) | |
| tree | e0a10e0e5f83f9c55d8a4b459077822626937405 /packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx | |
| parent | 4fbffdf617b2fb87c1b663391fbe488c5c81beb8 (diff) | |
Add privacy notice slash command (#2059)
Diffstat (limited to 'packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx')
| -rw-r--r-- | packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx b/packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx new file mode 100644 index 00000000..57030ac3 --- /dev/null +++ b/packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx @@ -0,0 +1,58 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + +import { Box, Newline, Text, useInput } from 'ink'; +import { Colors } from '../colors.js'; + +interface GeminiPrivacyNoticeProps { + onExit: () => void; +} + +export const GeminiPrivacyNotice = ({ onExit }: GeminiPrivacyNoticeProps) => { + useInput((input, key) => { + if (key.escape) { + onExit(); + } + }); + + return ( + <Box flexDirection="column" marginBottom={1}> + <Text bold color={Colors.AccentPurple}> + Gemini API Key Notice + </Text> + <Newline /> + <Text> + By using the Gemini API<Text color={Colors.AccentBlue}>[1]</Text>, + Google AI Studio + <Text color={Colors.AccentRed}>[2]</Text>, and the other Google + developer services that reference these terms (collectively, the + "APIs" or "Services"), you are agreeing to Google + APIs Terms of Service (the "API Terms") + <Text color={Colors.AccentGreen}>[3]</Text>, and the Gemini API + Additional Terms of Service (the "Additional Terms") + <Text color={Colors.AccentPurple}>[4]</Text>. + </Text> + <Newline /> + <Text> + <Text color={Colors.AccentBlue}>[1]</Text>{' '} + https://ai.google.dev/docs/gemini_api_overview + </Text> + <Text> + <Text color={Colors.AccentRed}>[2]</Text> https://aistudio.google.com/ + </Text> + <Text> + <Text color={Colors.AccentGreen}>[3]</Text>{' '} + https://developers.google.com/terms + </Text> + <Text> + <Text color={Colors.AccentPurple}>[4]</Text>{' '} + https://ai.google.dev/gemini-api/terms + </Text> + <Newline /> + <Text color={Colors.Gray}>Press Esc to exit.</Text> + </Box> + ); +}; |
