mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
15 lines
340 B
TypeScript
15 lines
340 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import * as R from 'ramda';
|
|
import withFeatureCan from './withFeatureCan';
|
|
|
|
function FeatureCanJSX({ feature, children, isFeatureCan }) {
|
|
return isFeatureCan && children;
|
|
}
|
|
|
|
export const FeatureCan = R.compose(
|
|
withFeatureCan(({ isFeatureCan }) => ({
|
|
isFeatureCan,
|
|
})),
|
|
)(FeatureCanJSX);
|