strapi-plugin-config-sync/admin/src/components/Header/index.js

28 lines
581 B
JavaScript
Raw Normal View History

2021-03-20 17:57:25 +01:00
/*
*
* HeaderComponent
*
*/
import React, { memo } from 'react';
2021-10-14 17:13:12 +02:00
import { useIntl } from 'react-intl';
import { HeaderLayout } from '@strapi/design-system/Layout';
import { Box } from '@strapi/design-system/Box';
2021-03-20 17:57:25 +01:00
const HeaderComponent = () => {
2021-10-14 17:13:12 +02:00
const { formatMessage } = useIntl();
2021-03-20 17:57:25 +01:00
return (
2021-10-14 17:13:12 +02:00
<Box background="neutral100">
<HeaderLayout
title={formatMessage({ id: 'config-sync.Header.Title' })}
subtitle={formatMessage({ id: 'config-sync.Header.Description' })}
as="h2"
/>
</Box>
2021-03-20 17:57:25 +01:00
);
};
export default memo(HeaderComponent);