ValidateStatus.tsx 883 B

1234567891011121314151617181920212223242526272829303132
  1. import { useTranslation } from 'react-i18next'
  2. import {
  3. RiErrorWarningFill,
  4. } from '@remixicon/react'
  5. import { CheckCircle } from '@/app/components/base/icons/src/vender/solid/general'
  6. export const ValidatedErrorIcon = () => {
  7. return <RiErrorWarningFill className='w-4 h-4 text-[#D92D20]' />
  8. }
  9. export const ValidatedSuccessIcon = () => {
  10. return <CheckCircle className='w-4 h-4 text-[#039855]' />
  11. }
  12. export const ValidatingTip = () => {
  13. const { t } = useTranslation()
  14. return (
  15. <div className={'mt-2 text-primary-600 text-xs font-normal'}>
  16. {t('common.provider.validating')}
  17. </div>
  18. )
  19. }
  20. export const ValidatedErrorMessage = ({ errorMessage }: { errorMessage: string }) => {
  21. const { t } = useTranslation()
  22. return (
  23. <div className={'mt-2 text-[#D92D20] text-xs font-normal'}>
  24. {t('common.provider.validatedError')}{errorMessage}
  25. </div>
  26. )
  27. }