"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.CairoTestAppRouter = CairoTestAppRouter;
var _react = _interopRequireDefault(require("react"));
var _Router = require("../components/Router");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/test-utils/CairoTestAppRouter.tsx";
function CairoTestAppRouter({
  children
}) {
  _react.default.Children.forEach(children, currentChild => {
    if (! /*#__PURE__*/_react.default.isValidElement(currentChild)) {
      throw new Error('Each child needs to be a Route element');
    }
  });
  return /*#__PURE__*/_react.default.createElement(_Router.PatternsReactRouter, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 17,
      columnNumber: 5
    }
  }, children);
}
//# sourceMappingURL=CairoTestAppRouter.js.map