no-search-res.tsx 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import { useTranslation } from 'react-i18next'
  5. import { SearchMd } from '../../base/icons/src/vender/solid/general'
  6. type Props = {
  7. onReset: () => void
  8. }
  9. const NoSearchRes: FC<Props> = ({
  10. onReset,
  11. }) => {
  12. const { t } = useTranslation()
  13. return (
  14. <div>
  15. <div className='inline-flex p-3 rounded-lg bg-gray-50 border border-[#EAECF5]'>
  16. <SearchMd className='w-5 h-5 text-gray-500' />
  17. </div>
  18. <div className='mt-2'>
  19. <div className='leading-5 text-sm font-medium text-gray-500'>
  20. {t('tools.noSearchRes.title')}
  21. </div>
  22. <div className='mt-1 leading-[18px] text-xs font-normal text-gray-500'>
  23. {t('tools.noSearchRes.content')}
  24. </div>
  25. <div
  26. className='mt-2 leading-[18px] text-xs font-medium text-[#155EEF] uppercase cursor-pointer'
  27. onClick={onReset}
  28. >
  29. {t('tools.noSearchRes.reset')}
  30. </div>
  31. </div>
  32. </div>
  33. )
  34. }
  35. export default React.memo(NoSearchRes)