dify/web/app/components/plugins/marketplace/search-box/wrapper.tsx
2024-10-12 16:34:18 +08:00

15 lines
313 B
TypeScript

'use client'
import SearchBox from '.'
import { usePluginPageContext } from '@/app/components/plugins/plugin-page/context'
const Wrapper = () => {
const scrollDisabled = usePluginPageContext(v => v.scrollDisabled)
return (
<SearchBox widthShouldChange={scrollDisabled} />
)
}
export default Wrapper