{
diff --git a/web/app/components/plugins/marketplace/search-box/search-box-wrapper.tsx b/web/app/components/plugins/marketplace/search-box/search-box-wrapper.tsx
index e73a23f6ad..cca72f657a 100644
--- a/web/app/components/plugins/marketplace/search-box/search-box-wrapper.tsx
+++ b/web/app/components/plugins/marketplace/search-box/search-box-wrapper.tsx
@@ -1,36 +1,24 @@
'use client'
import { useMarketplaceContext } from '../context'
-import {
- useMixedTranslation,
- useSearchBoxAutoAnimate,
-} from '../hooks'
+import { useMixedTranslation } from '../hooks'
import SearchBox from './index'
-import cn from '@/utils/classnames'
type SearchBoxWrapperProps = {
locale?: string
- searchBoxAutoAnimate?: boolean
}
const SearchBoxWrapper = ({
locale,
- searchBoxAutoAnimate,
}: SearchBoxWrapperProps) => {
const { t } = useMixedTranslation(locale)
- const intersected = useMarketplaceContext(v => v.intersected)
const searchPluginText = useMarketplaceContext(v => v.searchPluginText)
const handleSearchPluginTextChange = useMarketplaceContext(v => v.handleSearchPluginTextChange)
const filterPluginTags = useMarketplaceContext(v => v.filterPluginTags)
const handleFilterPluginTagsChange = useMarketplaceContext(v => v.handleFilterPluginTagsChange)
- const { searchBoxCanAnimate } = useSearchBoxAutoAnimate(searchBoxAutoAnimate)
return (
{
+ const hasCustomTopClass = pluginTypeSwitchClassName?.includes('top-')
+
+ return (
+
+ )
+}
+
+export default StickySearchAndSwitchWrapper