UNPKG

@datalayer/core

Version:
19 lines (18 loc) 1.37 kB
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; /* * Copyright (c) 2023-2025 Datalayer, Inc. * Distributed under the terms of the Modified BSD License. */ import { Label, Link } from '@primer/react'; import { Box } from "@datalayer/primer-addons"; import { Banner } from '@primer/react/experimental'; import { useCoreStore, useRuntimesStore } from '../../state'; import { useNavigate } from '../../hooks'; export const FlashDisclaimer = () => { const { configuration } = useCoreStore(); const { showDisclaimer, setShowDisclaimer } = useRuntimesStore(); const navigate = useNavigate(); return (_jsx(_Fragment, { children: configuration?.whiteLabel === false && showDisclaimer && _jsx(Banner, { variant: "info", title: "AI Platform for Data Analysis", description: _jsxs(Box, { children: [_jsx(Label, { style: { marginRight: 10 }, children: "PRIVATE BETA" }), "Create Kernels and use them from your JupyterLab, VS Code or CLI. Read the ", _jsx(Link, { href: "javascript: return false;", onClick: e => navigate('/docs', e), children: "documentation" }), " for any question or ", _jsx(Link, { href: "javascript: return false;", onClick: e => navigate('/support/request', e), children: "contact us for support" }), "."] }), onDismiss: () => setShowDisclaimer(false) }) })); }; export default FlashDisclaimer;