fix
parent
2199d9cd54
commit
d1d5a6316b
@ -0,0 +1,32 @@
|
|||||||
|
'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
|
||||||
|
onHide: () => void
|
||||||
|
onConfirm: () => void
|
||||||
|
}
|
||||||
|
|
||||||
|
const ClearAllAnnotationsConfirmModal: FC<Props> = ({
|
||||||
|
isShow,
|
||||||
|
onHide,
|
||||||
|
onConfirm,
|
||||||
|
}) => {
|
||||||
|
const { t } = useTranslation()
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Confirm
|
||||||
|
isShow={isShow}
|
||||||
|
onCancel={onHide}
|
||||||
|
onConfirm={onConfirm}
|
||||||
|
type='danger'
|
||||||
|
title={t('appAnnotation.table.header.clearAllConfirm')}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default React.memo(ClearAllAnnotationsConfirmModal)
|
||||||
Loading…
Reference in New Issue