import {
AlertDialogCancelButton,
AlertDialogConfirmButton,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogTitle,
} from '@langgenius/dify-ui/alert-dialog'
import { useTranslation } from 'react-i18next'
const i18nPrefix = 'autoUpdate.pluginDowngradeWarning'
type Props = Readonly<{
excluding: boolean
downgrading: boolean
onJustDowngrade: () => void
onExcludeAndDowngrade: () => void
}>
const DowngradeWarningContent = ({
excluding,
downgrading,
onJustDowngrade,
onExcludeAndDowngrade,
}: Props) => {
const { t } = useTranslation(['app', 'plugin', 'common'])
return (
<>
{t(($) => $[`${i18nPrefix}.title`], { ns: 'plugin' })}
{t(($) => $[`${i18nPrefix}.description`], { ns: 'plugin' })}
{t(($) => $['newApp.Cancel'], { ns: 'app' })}
{t(($) => $[`${i18nPrefix}.downgrade`], { ns: 'plugin' })}
{t(($) => $[`${i18nPrefix}.exclude`], { ns: 'plugin' })}
>
)
}
export default DowngradeWarningContent