mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 11:43:56 +00:00

* feat: login limit time config * doc * perf: code * i18n update * update lock * fix: ts * update package
24 lines
696 B
TypeScript
24 lines
696 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:no_more_data')}
|
|
</Box>
|
|
</Flex>
|
|
);
|
|
};
|
|
|
|
export default EmptyTip;
|