import type { FlexProps } from '@chakra-ui/react'; import { Flex } from '@chakra-ui/react'; import React from 'react'; import config from 'configs/app'; import AlertWithExternalHtml from 'ui/shared/alerts/AlertWithExternalHtml'; import IndexingBlocksAlert from './alerts/IndexingBlocksAlert'; const maintenanceAlertHtml = config.UI.maintenanceAlert.message || ''; const HeaderAlert = (props: FlexProps) => { return ( { maintenanceAlertHtml && } ); }; export default React.memo(HeaderAlert);