import { __assign } from "../../../../../../../tslib@2.6.2/node_modules/tslib/tslib.es6.js";
import { useMemo } from "react";
import { copyRawValuesOnly } from "../html/use-props.js";
import { buildSVGAttrs } from "./utils/build-attrs.js";
import { createSvgRenderState } from "./utils/create-render-state.js";
function useSVGProps(props, visualState) {
  var visualProps = useMemo(function() {
    var state = createSvgRenderState();
    buildSVGAttrs(state, visualState, { enableHardwareAcceleration: false }, props.transformTemplate);
    return __assign(__assign({}, state.attrs), { style: __assign({}, state.style) });
  }, [visualState]);
  if (props.style) {
    var rawStyles = {};
    copyRawValuesOnly(rawStyles, props.style, props);
    visualProps.style = __assign(__assign({}, rawStyles), visualProps.style);
  }
  return visualProps;
}
export {
  useSVGProps
};
//# sourceMappingURL=use-props.js.map
