plugin detail header data binding

This commit is contained in:
JzoNg
2024-10-16 17:30:51 +08:00
parent 7c5c35600c
commit 10190a9aa5
6 changed files with 125 additions and 24 deletions

View File

@ -1,12 +1,8 @@
'use client'
import { useState } from 'react'
import type { Plugin } from '../types'
import type { PluginDetail } from '../types'
import PluginDetailPanel from '@/app/components/plugins/plugin-detail-panel'
import {
// extensionDallE,
// modelGPT4,
toolNotion,
} from '@/app/components/plugins/card/card-mock'
import { toolNotion } from '@/app/components/plugins/plugin-detail-panel/mock'
import type { FilterState } from './filter-management'
import FilterManagement from './filter-management'
@ -17,7 +13,7 @@ const PluginsPanel = () => {
//
}
const [currentPluginDetail, setCurrentPluginDetail] = useState<Plugin | undefined>(toolNotion as any)
const [currentPluginDetail, setCurrentPluginDetail] = useState<PluginDetail | undefined>(toolNotion as any)
return (
<>
<div className='flex flex-col pt-1 pb-3 px-12 justify-center items-start gap-3 self-stretch'>