feat: add search params to url (#17684)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Wu Tianwei 2025-04-10 11:18:43 +08:00 • committed by GitHub
commit 63aab5cdd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 114 additions and 27 deletions

View file

@ -92,3 +92,17 @@ export const useSingleCategories = (translateFromOut?: TFunction) => {
categoriesMap,
}
}
export const PLUGIN_PAGE_TABS_MAP = {
plugins: 'plugins',
marketplace: 'discover',
}
export const usePluginPageTabs = () => {
const { t } = useTranslation()
const tabs = [
{ value: PLUGIN_PAGE_TABS_MAP.plugins, text: t('common.menus.plugins') },
{ value: PLUGIN_PAGE_TABS_MAP.marketplace, text: t('common.menus.exploreMarketplace') },
]
return tabs
}