mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
31 lines
625 B
TypeScript
31 lines
625 B
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import config from 'configs/app';
|
|
import { Alert } from 'toolkit/chakra/alert';
|
|
|
|
const MaintenanceAlert = () => {
|
|
if (!config.UI.maintenanceAlert.message) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Alert status="info" showIcon>
|
|
<Box
|
|
dangerouslySetInnerHTML={{ __html: config.UI.maintenanceAlert.message }}
|
|
css={{
|
|
'& a': {
|
|
color: 'link.primary',
|
|
_hover: {
|
|
color: 'link.primary.hover',
|
|
},
|
|
},
|
|
}}
|
|
|
|
/>
|
|
</Alert>
|
|
);
|
|
};
|
|
|
|
export default MaintenanceAlert;
|