'use client' import type { FC } from 'react' import React from 'react' import type { PluginDeclaration } from '../../../types' import Card from '../../../card' import Button from '@/app/components/base/button' import { pluginManifestToCardPluginProps } from '../../utils' import { useTranslation } from 'react-i18next' type Props = { payload: PluginDeclaration isFailed: boolean onCancel: () => void } const Installed: FC = ({ payload, isFailed, onCancel, }) => { const { t } = useTranslation() return ( <>

{t(`plugin.installModal.${isFailed ? 'installFailedDesc' : 'installedSuccessfullyDesc'}`)}

{/* Action Buttons */}
) } export default React.memo(Installed)