empty-element.tsx 1.1 KB

1234567891011121314151617181920212223242526
  1. 'use client'
  2. import type { FC, SVGProps } from 'react'
  3. import React from 'react'
  4. import { useTranslation } from 'react-i18next'
  5. const ThreeDotsIcon = ({ className }: SVGProps<SVGElement>) => {
  6. return <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" className={className ?? ''}>
  7. <path d="M5 6.5V5M8.93934 7.56066L10 6.5M10.0103 11.5H11.5103" stroke="#374151" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
  8. </svg>
  9. }
  10. const EmptyElement: FC = () => {
  11. const { t } = useTranslation()
  12. return (
  13. <div className='flex items-center justify-center h-full'>
  14. <div className='bg-background-section-burn w-[560px] h-fit box-border px-5 py-4 rounded-2xl'>
  15. <span className='text-text-secondary system-md-semibold'>{t('appAnnotation.noData.title')}<ThreeDotsIcon className='inline relative -top-3 -left-1.5' /></span>
  16. <div className='mt-2 text-text-tertiary system-sm-regular'>
  17. {t('appAnnotation.noData.description')}
  18. </div>
  19. </div>
  20. </div>
  21. )
  22. }
  23. export default React.memo(EmptyElement)