import React from "react";
import { isElement } from "react-is";
import { ErrorStateSlot } from "../slots/states/ErrorStateSlot.js";
function getMapStatesTemplates(children) {
  let errorState;
  React.Children.forEach(children, (child) => {
    if (isElement(child)) {
      switch (child.type) {
        case ErrorStateSlot: {
          errorState = child.props.children;
          break;
        }
      }
    }
  });
  return { errorState };
}
export {
  getMapStatesTemplates
};
//# sourceMappingURL=get-map-states-template.js.map
