import React from 'react' import { useTranslation } from 'react-i18next' import { RiAddLine } from '@remixicon/react' import type { EndpointListItem, PluginEndpointDeclaration } from '../types' import EndpointCard from './endpoint-card' import ActionButton from '@/app/components/base/action-button' import Tooltip from '@/app/components/base/tooltip' type Props = { declaration: PluginEndpointDeclaration list: EndpointListItem[] } const EndpointList = ({ declaration, list, }: Props) => { const { t } = useTranslation() return (
{t('plugin.detailPanel.endpoints')} TODO
} />
{list.length === 0 && (
{t('plugin.detailPanel.endpointsEmpty')}
)}
{list.map((item, index) => ( ))}
) } export default EndpointList