"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
exports.ComponentWithoutProps = (Component, filters) => (props) => {
    const filteredProps = Object.keys(props).reduce((acc, prop) => {
        if (filters.indexOf(prop) === -1) {
            acc[prop] = props[prop];
        }
        return acc;
    }, {});
    return react_1.default.createElement(Component, Object.assign({}, filteredProps));
};
//# sourceMappingURL=componentPropsFilter.js.map