Sha256: caebcf4dc0e812e0e4fc4fcda1f704c4bfbc17fbaf1c759de6ec214930b1e2ef
Contents?: true
Size: 281 Bytes
Versions: 99
Compression:
Stored size: 281 Bytes
Contents
import React from 'react'; const withProtectedView = ( ProtectedComponent, ProtectionComponent, protectionFn ) => props => protectionFn(props) ? ( <ProtectedComponent {...props} /> ) : ( <ProtectionComponent {...props} /> ); export default withProtectedView;
Version data entries
99 entries across 99 versions & 1 rubygems