import React from 'react';
export const renderIf = (predicate) => 
// eslint-disable-next-line prefer-arrow-callback
React.memo(function RenderIf({ element, children }) {
    if (predicate(element)) {
        return children;
    }
    return null;
});
//# sourceMappingURL=RenderIf.js.map