import React from 'react';
import PropTypes from 'prop-types';
import t from 'coral-framework/services/i18n';
import RestrictedMessageBox from './RestrictedMessageBox';
const RestrictedContent = ({
children,
restricted,
message = t('framework.content_not_available'),
restrictedComp,
}) => {
if (restricted) {
return restrictedComp ? (
restrictedComp
) : (