Source

frontend/src/components/pages/RobotModeler/ModelerSidebar/PropertiesPanel/PropertiesPanelSections/PPTitleSection/PPTitleSection.jsx

  1. import React from 'react';
  2. import { Typography } from 'antd';
  3. const { Text } = Typography;
  4. /**
  5. * @description Renders the corresponding title for selected BPMN element
  6. * @category Frontend
  7. * @component
  8. */
  9. const PPTitleSection = (element) => {
  10. const { element: selectedElement } = element;
  11. let { type: title } = selectedElement;
  12. title = title.replace('bpmn:', '');
  13. return (
  14. <Text className='label-on-dark-background' style={{ fontSize: '24px' }}>
  15. {title}
  16. </Text>
  17. );
  18. };
  19. export default PPTitleSection;