wwf
9 天以前 938c3e5a587ce950a94964ea509b9e7f8834dfae
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
'use client'
import type { FC } from 'react'
import React from 'react'
import { useTranslation } from 'react-i18next'
import Slider from '@/app/components/base/features/new-feature-panel/annotation-reply/score-slider/base-slider'
 
type Props = {
  className?: string
  value: number
  onChange: (value: number) => void
}
 
const ScoreSlider: FC<Props> = ({
  className,
  value,
  onChange,
}) => {
  const { t } = useTranslation()
 
  return (
    <div className={className}>
      <div className='mt-[14px] h-[1px]'>
        <Slider
          max={100}
          min={80}
          step={1}
          value={value}
          onChange={onChange}
        />
      </div>
      <div className='system-xs-semibold-uppercase mt-[10px] flex items-center justify-between'>
        <div className='flex space-x-1 text-util-colors-cyan-cyan-500'>
          <div>0.8</div>
          <div>·</div>
          <div>{t('appDebug.feature.annotation.scoreThreshold.easyMatch')}</div>
        </div>
        <div className='flex space-x-1 text-util-colors-blue-blue-500'>
          <div>1.0</div>
          <div>·</div>
          <div>{t('appDebug.feature.annotation.scoreThreshold.accurateMatch')}</div>
        </div>
      </div>
    </div>
  )
}
export default React.memo(ScoreSlider)