'use client' import { useState } from 'react' import type { EndpointListItem, PluginDetail } from '../types' import type { FilterState } from './filter-management' import FilterManagement from './filter-management' import List from './list' import PluginDetailPanel from '@/app/components/plugins/plugin-detail-panel' import { toolNotion, toolNotionEndpoints } from '@/app/components/plugins/plugin-detail-panel/mock' const PluginsPanel = () => { const handleFilterChange = (filters: FilterState) => { // } const [currentPluginDetail, setCurrentPluginDetail] = useState(toolNotion as any) const [currentPluginEndpoints, setCurrentEndpoints] = useState(toolNotionEndpoints as any) return ( <>
{ setCurrentPluginDetail(undefined) setCurrentEndpoints([]) }} /> ) } export default PluginsPanel