import { __awaiter } from '../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.mjs';
import { jsx, Fragment } from 'react/jsx-runtime';
import { getTranslations } from 'next-intl/server';
import { Banner } from './mdx/banner.mjs';

function FumaBannerSuit(_a) {
    return __awaiter(this, arguments, void 0, function* ({ locale, showBanner, floating = true, }) {
        const t = yield getTranslations({ locale, namespace: 'home' });
        const heightValue = showBanner ? 3 : 0.5;
        const height = `${heightValue}rem`;
        const bannerText = t('banner');
        return (jsx(Fragment, { children: showBanner ? (jsx(Banner, { variant: "rainbow", changeLayout: true, height: heightValue, floating: floating, children: jsx("p", { className: "text-sm sm:text-xl md:text-xl", children: bannerText }) })) : (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,
                } })) }));
    });
}

export { FumaBannerSuit };
