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
'use client'
import type { FC } from 'react'
import React from 'react'
import { useTranslation } from 'react-i18next'
import Confirm from '@/app/components/base/confirm'
 
type Props = {
  isShow: boolean
  onConfirm: () => void
  onCancel: () => void
}
const i18nPrefix = 'workflow.common.effectVarConfirm'
 
const RemoveVarConfirm: FC<Props> = ({
  isShow,
  onConfirm,
  onCancel,
}) => {
  const { t } = useTranslation()
 
  return (
    <Confirm
      isShow={isShow}
      title={t(`${i18nPrefix}.title`)}
      content={t(`${i18nPrefix}.content`)}
      onConfirm={onConfirm}
      onCancel={onCancel}
    />
  )
}
export default React.memo(RemoveVarConfirm)