index.tsx 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { CheckCircleIcon } from '@heroicons/react/24/solid'
  2. import { XMarkIcon } from '@heroicons/react/24/outline'
  3. import { useTranslation } from 'react-i18next'
  4. import Modal from '@/app/components/base/modal'
  5. import Button from '@/app/components/base/button'
  6. import s from './index.module.css'
  7. interface IInvitedModalProps {
  8. onCancel: () => void,
  9. }
  10. const InvitedModal = ({
  11. onCancel
  12. }: IInvitedModalProps) => {
  13. const { t } = useTranslation()
  14. return (
  15. <div className={s.wrap}>
  16. <Modal isShow onClose={() => {}} className={s.modal}>
  17. <div className='flex justify-between mb-3'>
  18. <div className='
  19. w-12 h-12 flex items-center justify-center rounded-xl
  20. bg-white border-[0.5px] border-gray-100
  21. shadow-[0px_20px_24px_-4px_rgba(16,24,40,0.08),0px_8px_8px_-4px_rgba(16,24,40,0.03)]
  22. '>
  23. <CheckCircleIcon className='w-[22px] h-[22px] text-[#039855]' />
  24. </div>
  25. <XMarkIcon className='w-4 h-4 cursor-pointer' onClick={onCancel} />
  26. </div>
  27. <div className='mb-1 text-xl font-semibold text-gray-900'>{t('common.members.invitationSent')}</div>
  28. <div className='mb-10 text-sm text-gray-500'>{t('common.members.invitationSentTip')}</div>
  29. <div className='flex justify-end'>
  30. <Button
  31. className='w-[96px] text-sm font-medium'
  32. onClick={onCancel}
  33. type='primary'
  34. >
  35. {t('common.members.ok')}
  36. </Button>
  37. </div>
  38. </Modal>
  39. </div>
  40. )
  41. }
  42. export default InvitedModal