'use strict';

var React = require('react');
var _tslib = require('./_tslib-9c546438.js');
var css = require('./css-203af057.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

var useCustomCss = function (customCss) {
    var resolvedCss = React__default['default'].useMemo(function () {
        if (customCss) {
            switch (typeof customCss) {
                case 'string':
                    return css.css(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n            ", "\n          "], ["\n            ", "\n          "])), customCss);
                case 'object':
                default:
                    return css.css(customCss);
            }
        }
    }, [customCss]);
    return resolvedCss;
};
var usePrevious = function (value) {
    var ref = React__default['default'].useRef();
    React__default['default'].useEffect(function () {
        ref.current = value;
    }, [value]);
    return ref.current;
};
var templateObject_1;

exports.useCustomCss = useCustomCss;
exports.usePrevious = usePrevious;
//# sourceMappingURL=utilities-d51a0c2d.js.map
