mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw-ui.git
synced 2025-10-29 01:42:32 +00:00
19 lines
399 B
TypeScript
19 lines
399 B
TypeScript
import React from 'react';
|
|
import { Box, LayoutProps, useStyleConfig } from '@chakra-ui/react';
|
|
|
|
interface Props extends LayoutProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
const MainPanel: React.FC<Props> = ({ children, ...props }) => {
|
|
const styles = useStyleConfig('MainPanel');
|
|
|
|
return (
|
|
<Box __css={styles} mb="16px" {...props}>
|
|
{children}
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default MainPanel;
|