import React, { useState } from 'react';
import { useEssentials } from '@wix/fe-essentials/react';
import { CairoProvider } from '../providers';
import { buildWixPatternsEssentials } from './buildWixPatternsEssentials';
export function WixPatternsEssentialsProvider(props) {
    const { value, children } = props;
    const essentials = useEssentials();
    const [wixPatternsEssentials] = useState(() => buildWixPatternsEssentials(essentials, {
        overrides: value,
    }));
    return (React.createElement(CairoProvider, { ...props, value: wixPatternsEssentials }, children));
}
//# sourceMappingURL=WixPatternsEssentialsProvider.js.map