'use client' import { useTranslation } from 'react-i18next' import Link from 'next/link' import classNames from '@/utils/classnames' import { Group } from '@/app/components/base/icons/src/vender/other' import { useSelectedLayoutSegment } from 'next/navigation' import DownloadingIcon from './downloading-icon' import { usePluginTaskStatus } from '@/app/components/plugins/plugin-page/plugin-tasks/hooks' import Indicator from '@/app/components/header/indicator' type PluginsNavProps = { className?: string } const PluginsNav = ({ className, }: PluginsNavProps) => { const { t } = useTranslation() const selectedSegment = useSelectedLayoutSegment() const activated = selectedSegment === 'plugins' const { isInstalling, isInstallingWithError, isFailed, } = usePluginTaskStatus() return (