mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00

* feat: loop node (#2675) * loop node frontend * loop-node * fix-code * fix version * fix * fix * fix * perf: loop array code * perf: get histories error tip * feat: support openai o1 * perf: query extension prompt * feat: 4811 doc * remove log * fix: loop node zindex & variable picker type (#2710) * perf: performance * perf: workflow performance * remove uninvalid code * perf:code * fix: invoice table refresh * perf: loop node data type * fix: loop node store assistants * perf: target connection * feat: loop node support help line * perf: add default icon --------- Co-authored-by: heheer <heheer@sealos.io>
24 lines
707 B
TypeScript
24 lines
707 B
TypeScript
import React from 'react';
|
|
import { Flex, Box, FlexProps } from '@chakra-ui/react';
|
|
import MyIcon from '../Icon';
|
|
import { useTranslation } from 'next-i18next';
|
|
|
|
type Props = FlexProps & {
|
|
text?: string | React.ReactNode;
|
|
iconSize?: string | number;
|
|
};
|
|
|
|
const EmptyTip = ({ text, iconSize = '48px', ...props }: Props) => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<Flex mt={5} flexDirection={'column'} alignItems={'center'} py={'10vh'} {...props}>
|
|
<MyIcon name="empty" w={iconSize} h={iconSize} color={'transparent'} />
|
|
<Box mt={2} color={'myGray.500'} fontSize={'sm'}>
|
|
{text || t('common:common.empty.Common Tip')}
|
|
</Box>
|
|
</Flex>
|
|
);
|
|
};
|
|
|
|
export default EmptyTip;
|