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