/** * @license * Copyright 2025 Vybestack LLC * SPDX-License-Identifier: Apache-2.0 */ import { useCallback } from 'react'; import { Box, Newline, Text } from 'ink'; import { Colors } from '../colors.js'; import { useKeypress } from '../hooks/useKeypress.js'; interface UnconfiguredPrivacyNoticeProps { onExit: () => void; } /** * Neutral privacy notice shown when no provider is configured. * Does NOT assume Gemini — the user has not yet chosen a provider, so * provider-specific terms do not apply. */ export const UnconfiguredPrivacyNotice = ({ onExit, }: UnconfiguredPrivacyNoticeProps) => { useKeypress( useCallback( (key: { name?: string }) => { if (key.name === 'escape') { onExit(); } }, [onExit], ), { isActive: true }, ); return ( LLxprt Code Privacy Notice LLxprt Code does{' '} NOT {' '} collect any telemetry or usage data. No provider is configured. Run{' '} /setup {' '} to choose a hosted provider, configure a local model, set up a custom compatible endpoint, or select an existing profile. Once a provider is configured, its specific terms of service and privacy policy will apply to your data. For full provider information, see: https://github.com/vybestack/llxprt-code/blob/main/docs/tos-privacy.md Press Esc to exit. ); };