import React from 'react' import { useTranslation } from 'react-i18next' import ToolItem from '@/app/components/tools/provider/tool-item' import { usePluginStore } from './store' export const TriggerEventsList = () => { const { t } = useTranslation() const detail = usePluginStore(state => state.detail) const triggers = detail?.declaration.trigger?.triggers || [] if (!triggers.length) return null // todo: add collection & update ToolItem return (