(name: string, type: 'file' | 'npm')
| 33 | }, [plugins, search]); |
| 34 | |
| 35 | const handleOpen = (name: string, type: 'file' | 'npm') => { |
| 36 | if (type === 'npm') return; |
| 37 | router.push(`/editor?type=plugins&name=${encodeURIComponent(name)}`); |
| 38 | }; |
| 39 | |
| 40 | const handleToggle = async (name: string) => { |
| 41 | try { |