import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
/*
 * Copyright (c) 2023-2025 Datalayer, Inc.
 * Distributed under the terms of the Modified BSD License.
 */
// import { AlertIcon } from '@primer/octicons-react';
// import { Box, Flash as PrimerFlash, Link } from '@primer/react';
import { Link } from '@primer/react';
import { Banner } from '@primer/react/experimental';
import { QuestionIcon } from '@primer/octicons-react';
import { useNavigate } from '../../hooks/index.js';
export const FlashUnauthorized = () => {
    const navigate = useNavigate();
    return (_jsx(_Fragment, { children: _jsx(Banner, { title: "Warning", variant: "warning", 
            //    onDismiss={action('onDismiss')}
            description: _jsxs(_Fragment, { children: ["Your current roles does not allow you to access this feature. Please", ' ', _jsx(Link, { inline: true, href: "javascript: return false;", onClick: e => navigate('/support', e), children: "contact support" }), ' ', "for more information."] }), primaryAction: _jsx(Banner.PrimaryAction, { onClick: e => navigate('/support/request', e), leadingVisual: QuestionIcon, children: "Contact support" }) }) }));
};
export default FlashUnauthorized;
