wwf
2 天以前 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
'use client'
import { t } from 'i18next'
import { Refresh } from '../icons/src/vender/line/general'
import Tooltip from '@/app/components/base/tooltip'
 
type Props = {
  className?: string
  onClick?: () => void
}
 
const RegenerateBtn = ({ className, onClick }: Props) => {
  return (
    <div className={`${className}`}>
      <Tooltip
        popupContent={t('appApi.regenerate') as string}
      >
        <div
          className={'box-border p-0.5 flex items-center justify-center rounded-md bg-white cursor-pointer'}
          onClick={() => onClick?.()}
          style={{
            boxShadow: '0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06)',
          }}
        >
          <Refresh className="p-[3.5px] w-6 h-6 text-[#667085] hover:bg-gray-50" />
        </div>
      </Tooltip>
    </div>
  )
}
 
export default RegenerateBtn