index.tsx 614 B

1234567891011121314151617181920212223
  1. import type { FC } from 'react'
  2. import React from 'react'
  3. import {
  4. RiSparklingFill,
  5. } from '@remixicon/react'
  6. import { useTranslation } from 'react-i18next'
  7. export type INoDataProps = {}
  8. const NoData: FC<INoDataProps> = () => {
  9. const { t } = useTranslation()
  10. return (
  11. <div className='flex h-full w-full flex-col items-center justify-center'>
  12. <RiSparklingFill className='h-12 w-12 text-text-empty-state-icon' />
  13. <div
  14. className='system-sm-regular mt-2 text-text-quaternary'
  15. >
  16. {t('share.generation.noData')}
  17. </div>
  18. </div>
  19. )
  20. }
  21. export default React.memo(NoData)