'use strict';

var tslib_es6 = require('../node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js');
var jsxRuntime = require('react/jsx-runtime');
var server = require('next-intl/server');
var banner = require('./mdx/banner.js');

function FumaBannerSuit(_a) {
    return tslib_es6.__awaiter(this, arguments, void 0, function* ({ locale, showBanner, floating = true, }) {
        const t = yield server.getTranslations({ locale, namespace: 'home' });
        const heightValue = showBanner ? 3 : 0.5;
        const height = `${heightValue}rem`;
        const bannerText = t('banner');
        return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: showBanner ? (jsxRuntime.jsx(banner.Banner, { variant: "rainbow", changeLayout: true, height: heightValue, floating: floating, children: jsxRuntime.jsx("p", { className: "text-sm sm:text-xl md:text-xl", children: bannerText }) })) : (jsxRuntime.jsx("div", { className: "m-0 rounded-none bg-neutral-100 dark:bg-neutral-900", style: {
                    position: floating ? 'fixed' : 'relative',
                    top: floating ? 0 : undefined,
                    left: floating ? 0 : undefined,
                    width: floating ? '100vw' : '100%',
                    zIndex: floating ? 1001 : undefined,
                    height: height,
                    minHeight: height,
                    maxHeight: height,
                } })) }));
    });
}

exports.FumaBannerSuit = FumaBannerSuit;
