import { useEssentials } from '@wix/fe-essentials/react';
import { dashboard } from '@wix/dashboard';
import React from 'react';
import { WixPatternsDashboardBaseProvider, } from './WixPatternsDashboardBaseProvider';
import { useEnvironment } from './useEnvironment';
export function WixPatternsDashboardProviderInternal(props) {
    const essentials = useEssentials();
    const environment = useEnvironment();
    if (!environment) {
        return null;
    }
    return (React.createElement(WixPatternsDashboardBaseProvider, { ...props, dashboard: dashboard, environment: environment, essentials: essentials }));
}
//# sourceMappingURL=WixPatternsDashboardProviderInternal.js.map