import { Flex, chakra } from '@chakra-ui/react'; import React from 'react'; import config from 'configs/app'; import { CONTENT_MAX_WIDTH } from '../utils'; interface Props { children: React.ReactNode; className?: string; } const TOP_BAR_HEIGHT = 36; const HORIZONTAL_NAV_BAR_HEIGHT = config.UI.navigation.layout === 'horizontal' ? 49 : 0; const MainArea = ({ children, className }: Props) => { return ( { children } ); }; export default React.memo(chakra(MainArea));