ValidateStatus.tsx 912 B

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