import React from 'react';
const createEagerElementUtil = (
hasKey,
isReferentiallyTransparent,
type,
props,
children
) => {
if (!hasKey && isReferentiallyTransparent) {
if (children) {
return type({ ...props, children });
}
return type(props);
}
const Component = type;
if (children) {
return {children};
}
return ;
};
export default createEagerElementUtil;