"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const React = require("react");
const useProps = require("./dist-es-render-html-use-props.cjs");
const buildAttrs = require("./dist-es-render-svg-utils-build-attrs.cjs");
const createRenderState = require("./dist-es-render-svg-utils-create-render-state.cjs");
const isSvgTag = require("./dist-es-render-svg-utils-is-svg-tag.cjs");
function useSVGProps(props, visualState, _isStatic, Component) {
  const visualProps = React.useMemo(() => {
    const state = createRenderState.createSvgRenderState();
    buildAttrs.buildSVGAttrs(state, visualState, isSvgTag.isSVGTag(Component), props.transformTemplate);
    return {
      ...state.attrs,
      style: { ...state.style }
    };
  }, [visualState]);
  if (props.style) {
    const rawStyles = {};
    useProps.copyRawValuesOnly(rawStyles, props.style, props);
    visualProps.style = { ...rawStyles, ...visualProps.style };
  }
  return visualProps;
}
exports.useSVGProps = useSVGProps;
//# sourceMappingURL=dist-es-render-svg-use-props.cjs.map
