blob: c0eaa74f2d641702bbae31e0a16c50deb75b7190 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { Box, Newline, Text } from 'ink';
import { Colors } from '../colors.js';
import { useKeypress } from '../hooks/useKeypress.js';
interface GeminiPrivacyNoticeProps {
onExit: () => void;
}
export const GeminiPrivacyNotice = ({ onExit }: GeminiPrivacyNoticeProps) => {
useKeypress(
(key) => {
if (key.name === 'escape') {
onExit();
}
},
{ isActive: true },
);
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>
);
};
|