import { jsx as _jsx } from "react/jsx-runtime";
/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import { Box } from 'ink';
import { GeminiPrivacyNotice } from './GeminiPrivacyNotice.js';
import { MultiProviderPrivacyNotice } from './MultiProviderPrivacyNotice.js';
/**
 * Privacy notice component that shows appropriate notice based on active provider.
 */
const PrivacyNoticeText = ({ config, onExit, }) => {
    // Check active provider to determine which privacy notice to show
    const providerManager = config.getProviderManager?.();
    const activeProvider = providerManager?.getActiveProvider?.();
    // If we have a non-Gemini provider active, show its specific notice
    if (activeProvider && activeProvider.name !== 'gemini') {
        return (_jsx(MultiProviderPrivacyNotice, { providerName: activeProvider.name, onExit: onExit }));
    }
    // Default to Gemini privacy notice (covers OAuth, API key, Vertex AI)
    return _jsx(GeminiPrivacyNotice, { onExit: onExit });
};
export const PrivacyNotice = ({ onExit, config }) => (_jsx(Box, { borderStyle: "round", padding: 1, flexDirection: "column", children: _jsx(PrivacyNoticeText, { config: config, onExit: onExit }) }));
//# sourceMappingURL=PrivacyNotice.js.map