"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const lowercaseElements = require("./dist-es-render-svg-lowercase-elements.cjs");
function isSVGComponent(Component) {
  if (
    /**
     * If it's not a string, it's a custom React component. Currently we only support
     * HTML custom React components.
     */
    typeof Component !== "string" || /**
     * If it contains a dash, the element is a custom HTML webcomponent.
     */
    Component.includes("-")
  ) {
    return false;
  } else if (
    /**
     * If it's in our list of lowercase SVG tags, it's an SVG component
     */
    lowercaseElements.lowercaseSVGElements.indexOf(Component) > -1 || /**
     * If it contains a capital letter, it's an SVG component
     */
    /[A-Z]/u.test(Component)
  ) {
    return true;
  }
  return false;
}
exports.isSVGComponent = isSVGComponent;
//# sourceMappingURL=dist-es-render-dom-utils-is-svg-component.cjs.map
