RedHatInsights/insights-rbac-ui

View on GitHub
src/smart-components/role/add-role/cost-resources-template.js

Summary

Maintainability
A
0 mins
Test Coverage
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;