"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useK8sWatchResource = void 0;
const dynamic_plugin_sdk_1 = require("@openshift-console/dynamic-plugin-sdk");
const useK8sWatchResource = (resource, props) => {
    // eslint-disable-next-line
    const [data, loaded, error] = (0, dynamic_plugin_sdk_1.useK8sWatchResource)(props !== null
        ? Object.assign(Object.assign({}, resource), (props || {})) : null);
    return [data, error ? true : loaded, error];
};
exports.useK8sWatchResource = useK8sWatchResource;
//# sourceMappingURL=useK8sWatchResource.js.map