"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "useInnerProps", {
    enumerable: true,
    get: function() {
        return useInnerProps;
    }
});
const _react = require("react");
const _utils = require("../utils");
const useInnerProps = (props, initialInnerProps)=>{
    return (0, _react.useMemo)(()=>{
        const { width, height } = props;
        if (!width || !height) {
            return (0, _utils.getFallbackProps)(props, initialInnerProps);
        }
        const innerProps = {
            wrapperWidth: (0, _utils.sizeFormatting)(width),
            wrapperHeight: (0, _utils.sizeFormatting)(height),
            svgWidth: height,
            svgHeight: width,
            color: initialInnerProps.color
        };
        return (0, _utils.getFallbackProps)(props, innerProps);
    }, [
        props.width,
        props.height,
        props.view,
        props.size
    ]);
};
