"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const tslib_es6 = require("../../../../../../../tslib@2.6.2/node_modules/tslib/tslib.es6.js");
const React = require("react");
const useProps = require("../html/use-props.js");
const buildAttrs = require("./utils/build-attrs.js");
const createRenderState = require("./utils/create-render-state.js");
function useSVGProps(props, visualState) {
  var visualProps = React.useMemo(function() {
    var state = createRenderState.createSvgRenderState();
    buildAttrs.buildSVGAttrs(state, visualState, { enableHardwareAcceleration: false }, props.transformTemplate);
    return tslib_es6.__assign(tslib_es6.__assign({}, state.attrs), { style: tslib_es6.__assign({}, state.style) });
  }, [visualState]);
  if (props.style) {
    var rawStyles = {};
    useProps.copyRawValuesOnly(rawStyles, props.style, props);
    visualProps.style = tslib_es6.__assign(tslib_es6.__assign({}, rawStyles), visualProps.style);
  }
  return visualProps;
}
exports.useSVGProps = useSVGProps;
//# sourceMappingURL=use-props.js.map
