import React__default from 'react';
import { b as __makeTemplateObject } from './_tslib-5c49bd3f.js';
import { c as css } from './css-efbd0d2d.js';

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

export { usePrevious as a, useCustomCss as u };
//# sourceMappingURL=utilities-357c56e6.js.map
