import { WixPatternsContainerOverridesProvider, useWixPatternsContainerOverrides, } from '@wix/bex-core/react';
import React, { useState } from 'react';
import { QueryCache } from '@wix/bex-core';
export const WixPatternsTestProvider = (props) => {
    const { overrides, children } = props;
    const existingWixPatternsContainerOverrides = useWixPatternsContainerOverrides();
    const [wixPatternsContainerOverrides] = useState(() => ({
        queryCache: new QueryCache(),
        ...existingWixPatternsContainerOverrides,
        ...overrides,
    }));
    return (React.createElement(WixPatternsContainerOverridesProvider, { value: wixPatternsContainerOverrides }, children));
};
//# sourceMappingURL=WixPatternsTestProvider.js.map