mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00

* fix http plugin edge (#95) * fix http plugin edge * use getHandleId * perf: i18n file * feat: histories list * perf: request lock * fix: ts * move box components * fix: edit form refresh --------- Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
32 lines
768 B
TypeScript
32 lines
768 B
TypeScript
import React from 'react';
|
|
import { useTheme, type BoxProps } from '@chakra-ui/react';
|
|
import MyBox from '@fastgpt/web/components/common/MyBox';
|
|
|
|
const PageContainer = ({
|
|
children,
|
|
isLoading,
|
|
insertProps = {},
|
|
...props
|
|
}: BoxProps & { isLoading?: boolean; insertProps?: BoxProps }) => {
|
|
const theme = useTheme();
|
|
return (
|
|
<MyBox h={'100%'} py={[0, '16px']} pr={[0, '16px']} {...props}>
|
|
<MyBox
|
|
isLoading={isLoading}
|
|
h={'100%'}
|
|
borderColor={'borderColor.base'}
|
|
borderWidth={[0, 1]}
|
|
boxShadow={'1.5'}
|
|
overflow={'overlay'}
|
|
bg={'myGray.25'}
|
|
borderRadius={[0, '16px']}
|
|
{...insertProps}
|
|
>
|
|
{children}
|
|
</MyBox>
|
|
</MyBox>
|
|
);
|
|
};
|
|
|
|
export default PageContainer;
|