'use client' import type { FC } from 'react' import React from 'react' import type { InstallStatusResponse, 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' import { MARKETPLACE_API_PREFIX } from '@/config' type Props = { list: Plugin[] installStatus: InstallStatusResponse[] onCancel: () => void isHideButton?: boolean } const Installed: FC = ({ list, installStatus, onCancel, isHideButton, }) => { 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 */} {!isHideButton && (
)} ) } export default React.memo(Installed)