File size: 1,484 Bytes
a8b3f00
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
'use client'
import type { FC } from 'react'
import React from 'react'
import { useTranslation } from 'react-i18next'
import UpgradeBtn from '../upgrade-btn'
import Modal from '../../base/modal'
import Usage from './usage'
import s from './style.module.css'
import cn from '@/utils/classnames'
import GridMask from '@/app/components/base/grid-mask'

type Props = {
  show: boolean
  onHide: () => void
}
const AnnotationFullModal: FC<Props> = ({
  show,
  onHide,
}) => {
  const { t } = useTranslation()

  return (
    <Modal
      isShow={show}
      onClose={onHide}
      closable
      className='!p-0'
    >
      <GridMask wrapperClassName='rounded-lg' canvasClassName='rounded-lg' gradientClassName='rounded-lg'>
        <div className='mt-6 px-7 py-6 border-2 border-solid border-transparent rounded-lg shadow-md flex flex-col transition-all duration-200 ease-in-out cursor-pointer'>
          <div className='flex justify-between items-center'>
            <div className={cn(s.textGradient, 'leading-[27px] text-[18px] font-semibold')}>
              <div>{t('billing.annotatedResponse.fullTipLine1')}</div>
              <div>{t('billing.annotatedResponse.fullTipLine2')}</div>
            </div>

          </div>
          <Usage className='mt-4' />
          <div className='mt-7 flex justify-end'>
            <UpgradeBtn loc={'annotation-create'} />
          </div>
        </div>
      </GridMask>
    </Modal>
  )
}
export default React.memo(AnnotationFullModal)