wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
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
import React, { type FC } from 'react'
import { useTranslation } from 'react-i18next'
import classNames from '@/utils/classnames'
import Checkbox from '@/app/components/base/checkbox'
 
type AddAnotherProps = {
  className?: string
  isChecked: boolean
  onCheck: () => void
}
 
const AddAnother: FC<AddAnotherProps> = ({
  className,
  isChecked,
  onCheck,
}) => {
  const { t } = useTranslation()
 
  return (
    <div className={classNames('flex items-center gap-x-1 pl-1', className)}>
      <Checkbox
        key='add-another-checkbox'
        className='shrink-0'
        checked={isChecked}
        onCheck={onCheck}
      />
      <span className='text-text-tertiary system-xs-medium'>{t('datasetDocuments.segment.addAnother')}</span>
    </div>
  )
}
 
export default React.memo(AddAnother)