empty-element.tsx 1.1 KB

123456789101112131415161718192021222324252627
  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 h-full items-center justify-center'>
  14. <div className='box-border h-fit w-[560px] rounded-2xl bg-background-section-burn px-5 py-4'>
  15. <span className='system-md-semibold text-text-secondary'>{t('appAnnotation.noData.title')}<ThreeDotsIcon className='relative -left-1.5 -top-3 inline' /></span>
  16. <div className='system-sm-regular mt-2 text-text-tertiary'>
  17. {t('appAnnotation.noData.description')}
  18. </div>
  19. </div>
  20. </div>
  21. )
  22. }
  23. export default React.memo(EmptyElement)