Forum Discussion
MariaKyrychenko
2 months agoAdept
Code:
import type { CustomComponentProps } from 'aurora/externalContext';
import React from 'react';
const ExampleComponent: React.FC<CustomComponentProps> = ({ auroraContext }) => {
const { components, utils } = auroraContext;
const { i18n } = utils;
const { Panel, PanelBody } = components;
return (
<div>
<Panel>
<PanelBody>
<p>{i18n.formatMessage('panel.title')}</p>
</PanelBody>
</Panel>
</div>
);
};
export default ExampleComponent;
Would be grateful for any help, thanks!
Would be grateful for any help, thanks!
Related Content
- 4 years ago
- 10 years ago
- 8 years ago