'use client' import type { FC } from 'react' import React from 'react' import type { PluginDetail } from '@/app/components/plugins/types' import Icon from '@/app/components/plugins/card/base/card-icon' import { renderI18nObject } from '@/i18n-config' import { useGetLanguage } from '@/context/i18n' import { MARKETPLACE_API_PREFIX } from '@/config' import Checkbox from '@/app/components/base/checkbox' type Props = { payload: PluginDetail isChecked?: boolean onCheckChange: () => void } const ToolItem: FC = ({ payload, isChecked, onCheckChange, }) => { const language = useGetLanguage() const { plugin_id, declaration } = payload const { label, author: org } = declaration return (
{renderI18nObject(label, language)}
{org}
) } export default React.memo(ToolItem)