blob: 1f4015b5c2559031eaf0a039f101e493e0ce0cdc (
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 { theme } from '../semantic-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={theme.text.accent}>
Gemini API Key Notice
</Text>
<Newline />
<Text color={theme.text.primary}>
By using the Gemini API<Text color={theme.text.link}>[1]</Text>, Google
AI Studio
<Text color={theme.status.error}>[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={theme.status.success}>[3]</Text>, and the Gemini API
Additional Terms of Service (the "Additional Terms")
<Text color={theme.text.accent}>[4]</Text>.
</Text>
<Newline />
<Text color={theme.text.primary}>
<Text color={theme.text.link}>[1]</Text>{' '}
https://ai.google.dev/docs/gemini_api_overview
</Text>
<Text color={theme.text.primary}>
<Text color={theme.status.error}>[2]</Text> https://aistudio.google.com/
</Text>
<Text color={theme.text.primary}>
<Text color={theme.status.success}>[3]</Text>{' '}
https://developers.google.com/terms
</Text>
<Text color={theme.text.primary}>
<Text color={theme.text.accent}>[4]</Text>{' '}
https://ai.google.dev/gemini-api/terms
</Text>
<Newline />
<Text color={theme.text.secondary}>Press Esc to exit.</Text>
</Box>
);
};
|