import React, { useState } from 'react';
import { CairoProvider } from './CairoProvider';
import { experimentsFallbackApi } from '@wix/bex-core';
import { Trans } from '@wix/bex-utils/@wix/wix-i18n-config';
export function WixPatternsBaseProvider({ value: valueProp, children, ...rest }) {
    const [value] = useState(() => {
        const experiments = experimentsFallbackApi();
        return {
            useExperiments: () => ({
                ready: true,
                experiments,
            }),
            experiments,
            Trans,
            ...valueProp,
            user: {
                permissions: [],
                ...valueProp.user,
            },
        };
    });
    return (React.createElement(CairoProvider, { ...rest, value: value }, children));
}
//# sourceMappingURL=WixPatternsBaseProvider.js.map