'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 clerkUserClient = require('./clerk-user-client.js');

function ClerkUser(_a) {
    return tslib_es6.__awaiter(this, arguments, void 0, function* ({ locale, clerkAuthInModal = true, showSignUp = true }) {
        const t = yield server.getTranslations({ locale, namespace: 'clerk' });
        const t2 = yield server.getTranslations({ locale, namespace: 'footer' });
        const data = {
            signIn: t('signIn'),
            signUp: t('signUp'),
            signUpBonus: t('signUpBonus'),
            signUpBonusTooltip: t('signUpBonusTooltip'),
            terms: t2('terms'),
            privacy: t2('privacy'),
            locale,
            clerkAuthInModal,
            showSignUp
        };
        return jsxRuntime.jsx(clerkUserClient.ClerkUserClient, { data: data });
    });
}

exports.ClerkUser = ClerkUser;
