src/smart-components/role/add-role/cost-resources-template.js
import React from 'react';
import PropTypes from 'prop-types';
import { Title } from '@patternfly/react-core';
import { useIntl } from 'react-intl';
import messages from '../../../Messages';
const CostResourcesTemplate = ({ formFields }) => {
const intl = useIntl();
return (
<div className="rbac">
<Title headingLevel="h1" size="xl" className="pf-v5-u-mb-lg">
{intl.formatMessage(messages.defineCostResources)}
</Title>
{formFields}
</div>
);
};
CostResourcesTemplate.propTypes = {
formFields: PropTypes.array,
};
export default CostResourcesTemplate;