"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useError = void 0;
var react_1 = require("react");
function useError(error) {
    return (0, react_1.useMemo)(function () {
        if (error)
            console.error(error);
    }, error);
}
exports.useError = useError;
//# sourceMappingURL=useError.js.map