mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-02 12:48:30 +00:00
monorepo packages (#344)
This commit is contained in:
21
projects/app/src/components/PageContainer/index.tsx
Normal file
21
projects/app/src/components/PageContainer/index.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react';
|
||||
import { Box, useTheme, type BoxProps } from '@chakra-ui/react';
|
||||
|
||||
const PageContainer = ({ children, ...props }: BoxProps) => {
|
||||
const theme = useTheme();
|
||||
return (
|
||||
<Box bg={'myGray.100'} h={'100%'} p={[0, 5]} px={[0, 6]} {...props}>
|
||||
<Box
|
||||
h={'100%'}
|
||||
bg={'white'}
|
||||
borderRadius={[0, '2xl']}
|
||||
border={['none', theme.borders.lg]}
|
||||
overflow={'overlay'}
|
||||
>
|
||||
{children}
|
||||
</Box>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default PageContainer;
|
Reference in New Issue
Block a user