mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
23 lines
468 B
TypeScript
23 lines
468 B
TypeScript
import { Box, chakra } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
interface Props {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
const Container = ({ children, className }: Props) => {
|
|
return (
|
|
<Box
|
|
className={ className }
|
|
minWidth={{ base: '100vw', lg: 'fit-content' }}
|
|
m="0 auto"
|
|
bgColor={{ _light: 'white', _dark: 'black' }}
|
|
>
|
|
{ children }
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default React.memo(chakra(Container));
|