import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import{shallow as enzymeShallow}from"enzyme";import until from"./until";export default function createShallow(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.shallow,l=void 0===t?enzymeShallow:t,t=e.dive,r=void 0!==t&&t,t=e.untilSelector,i=void 0!==t&&t,n=_objectWithoutProperties(e,["shallow","dive","untilSelector"]);return function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=_extends({},n,t,{context:_extends({},n.context,t.context)}),t=l(e,o);return r?t.dive():i?until.call(t,i,o):t}}