feat(web): add PageEmpty component
This commit is contained in:
BIN
web/src/assets/images/empty/pageEmpty.png
Normal file
BIN
web/src/assets/images/empty/pageEmpty.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 157 KiB |
16
web/src/components/Empty/PageEmpty.tsx
Normal file
16
web/src/components/Empty/PageEmpty.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import pageEmptyIcon from '@/assets/images/empty/pageEmpty.png'
|
||||
import Empty from './index'
|
||||
const PageEmpty = ({ size = [240, 210] }: { size?: number | number[] }) => {
|
||||
const { t } = useTranslation()
|
||||
return (
|
||||
<Empty
|
||||
url={pageEmptyIcon}
|
||||
title={t('empty.pageEmpty')}
|
||||
subTitle={t('empty.pageEmptyDesc')}
|
||||
size={size}
|
||||
className="rb:h-full"
|
||||
/>
|
||||
)
|
||||
}
|
||||
export default PageEmpty;
|
||||
Reference in New Issue
Block a user