-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathSkipExitStep.tsx
More file actions
59 lines (53 loc) · 1.5 KB
/
SkipExitStep.tsx
File metadata and controls
59 lines (53 loc) · 1.5 KB
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
/**
* @license
* Copyright 2025 Vybestack LLC
* SPDX-License-Identifier: Apache-2.0
*/
import React from 'react';
import { Box, Text } from 'ink';
import { Colors } from '../../colors.js';
import { useKeypress } from '../../hooks/useKeypress.js';
interface SkipExitStepProps {
onDismiss: () => void;
isFocused?: boolean;
}
export const SkipExitStep: React.FC<SkipExitStepProps> = ({
onDismiss,
isFocused = true,
}) => {
useKeypress(
(key) => {
if (key.name === 'return') {
onDismiss();
}
},
{ isActive: isFocused },
);
return (
<Box flexDirection="column">
<Box flexDirection="column" marginBottom={1}>
<Text bold color={Colors.Foreground}>
Setup skipped
</Text>
</Box>
<Box flexDirection="column" marginBottom={1}>
<Text color={Colors.Foreground}>To configure llxprt manually:</Text>
<Text> </Text>
<Text color={Colors.Foreground}>
• Use <Text color={Colors.AccentCyan}>/auth <provider></Text> to
set up authentication
</Text>
<Text color={Colors.Foreground}>
• Use <Text color={Colors.AccentCyan}>/provider</Text> to select your
AI provider
</Text>
<Text color={Colors.Foreground}>
• Type <Text color={Colors.AccentCyan}>/help</Text> for more commands
</Text>
</Box>
<Box marginTop={1}>
<Text color={Colors.Gray}>Press Enter to continue...</Text>
</Box>
</Box>
);
};