Files
dify/web/app/components/app/annotation/remove-annotation-confirm-modal/index.tsx
2024-08-06 14:31:13 +08:00

30 lines
603 B
TypeScript

'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
onRemove: () => void
}
const RemoveAnnotationConfirmModal: FC<Props> = ({
isShow,
onHide,
onRemove,
}) => {
const { t } = useTranslation()
return (
<Confirm
isShow={isShow}
onCancel={onHide}
onConfirm={onRemove}
title={t('appDebug.feature.annotation.removeConfirm')}
/>
)
}
export default React.memo(RemoveAnnotationConfirmModal)