dify/web/app/components/plugins/marketplace/search-box/wrapper.tsx

15 lines
313 B
TypeScript
Raw Normal View History

2024-10-12 16:34:02 +08:00
'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