mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
17 lines
407 B
TypeScript
17 lines
407 B
TypeScript
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import { useColorModeValue } from 'toolkit/chakra/color-mode';
|
|
|
|
interface Props {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
const AppErrorGlobalContainer = ({ children }: Props) => {
|
|
const bgColor = useColorModeValue('white', 'black');
|
|
|
|
return <Box bgColor={ bgColor }>{ children }</Box>;
|
|
};
|
|
|
|
export default React.memo(AppErrorGlobalContainer);
|