'use client' import type { FC } from 'react' import React from 'react' import type { Plugin } from '../../../types' import Card from '@/app/components/plugins/card' import Button from '@/app/components/base/button' import { useTranslation } from 'react-i18next' import Badge, { BadgeState } from '@/app/components/base/badge/index' import useGetIcon from '../../base/use-get-icon' type Props = { list: Plugin[] installStatus: { success: boolean }[] onCancel: () => void } const Installed: FC = ({ list, installStatus, onCancel, }) => { const { t } = useTranslation() const { getIconUrl } = useGetIcon() return ( <>
{/*

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

*/}
{list.map((plugin, index) => { return ( {plugin.version} : null} /> ) })}
{/* Action Buttons */}
) } export default React.memo(Installed)