You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435
  1. import React from 'react'
  2. import { useTranslation } from 'react-i18next'
  3. const DefaultCards = React.memo(() => {
  4. const renderArray = Array.from({ length: 36 })
  5. return (
  6. <>
  7. {
  8. renderArray.map((_, index) => (
  9. <div
  10. key={index}
  11. className='inline-flex h-[160px] rounded-xl bg-background-default-lighter'
  12. />
  13. ))
  14. }
  15. </>
  16. )
  17. })
  18. const Empty = () => {
  19. const { t } = useTranslation()
  20. return (
  21. <>
  22. <DefaultCards />
  23. <div className='absolute bottom-0 left-0 right-0 top-0 flex items-center justify-center bg-gradient-to-t from-background-body to-transparent'>
  24. <span className='system-md-medium text-text-tertiary'>
  25. {t('app.newApp.noAppsFound')}
  26. </span>
  27. </div>
  28. </>
  29. )
  30. }
  31. export default React.memo(Empty)