'use client' import type { FC } from 'react' import { Dialog, DialogCloseButton, DialogContent, DialogTitle } from '@langgenius/dify-ui/dialog' import * as React from 'react' import { useTranslation } from 'react-i18next' import KeyValueItem from '../base/key-value-item' import { convertRepoToUrl } from '../install-plugin/utils' const i18nPrefix = '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 ( { if (!open) onHide() }} > {t(`${i18nPrefix}.title`, { ns: 'plugin' })}
{repository && } {release && } {packageName && }
) } export default React.memo(PlugInfo)