import { useMemo } from "react";
import { copyRawValuesOnly } from "./dist-es-render-html-use-props.js";
import { buildSVGAttrs } from "./dist-es-render-svg-utils-build-attrs.js";
import { createSvgRenderState } from "./dist-es-render-svg-utils-create-render-state.js";
import { isSVGTag } from "./dist-es-render-svg-utils-is-svg-tag.js";
function useSVGProps(props, visualState, _isStatic, Component) {
  const visualProps = useMemo(() => {
    const state = createSvgRenderState();
    buildSVGAttrs(state, visualState, isSVGTag(Component), props.transformTemplate);
    return {
      ...state.attrs,
      style: { ...state.style }
    };
  }, [visualState]);
  if (props.style) {
    const rawStyles = {};
    copyRawValuesOnly(rawStyles, props.style, props);
    visualProps.style = { ...rawStyles, ...visualProps.style };
  }
  return visualProps;
}
export {
  useSVGProps
};
//# sourceMappingURL=dist-es-render-svg-use-props.js.map
