import { Button } from '@langgenius/dify-ui/button' import { useTranslation } from 'react-i18next' const i18nPrefix = 'autoUpdate.pluginDowngradeWarning' type Props = Readonly<{ onCancel: () => void onJustDowngrade: () => void onExcludeAndDowngrade: () => void }> const DowngradeWarningModal = ({ onCancel, onJustDowngrade, onExcludeAndDowngrade }: Props) => { const { t } = useTranslation() return ( <>
{t(($) => $[`${i18nPrefix}.title`], { ns: 'plugin' })}
{t(($) => $[`${i18nPrefix}.description`], { ns: 'plugin' })}
) } export default DowngradeWarningModal