feat: Add base project structure with API and web components
This commit is contained in:
15
web/src/components/Empty/Loading.tsx
Normal file
15
web/src/components/Empty/Loading.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import LoadingIcon from '@/assets/images/loading.svg'
|
||||
import Empty from './index'
|
||||
const Loading = ({ size = 200 }: { size?: number }) => {
|
||||
const { t } = useTranslation()
|
||||
return (
|
||||
<Empty
|
||||
url={LoadingIcon}
|
||||
title={t('empty.loadingEmpty')}
|
||||
subTitle={t('empty.loadingEmptyDesc')}
|
||||
size={size}
|
||||
/>
|
||||
)
|
||||
}
|
||||
export default Loading;
|
||||
Reference in New Issue
Block a user