'use client' import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' import KeyValueItem from '../base/key-value-item' import Modal from '../../base/modal' import { convertRepoToUrl } from '../install-plugin/utils' const i18nPrefix = 'plugin.pluginInfoModal' type Props = { repository?: string release?: string packageName?: string onHide: () => void } const PlugInfo: FC = ({ repository, release, packageName, onHide, }) => { const { t } = useTranslation() const labelWidthClassName = 'w-[96px]' return (
{repository && } {release && } {packageName && }
) } export default React.memo(PlugInfo)