feat: add Plugin icon component and integrate it into the navigation operations

This commit is contained in:
yessenia
2026-02-09 16:37:19 +08:00
parent b9cd625c53
commit 984992d0fd
5 changed files with 82 additions and 3 deletions

View File

@ -1,12 +1,12 @@
'use client'
import { RiAddLine, RiBookOpenLine, RiGithubLine, RiPuzzle2Line } from '@remixicon/react'
import { RiAddLine, RiBookOpenLine, RiGithubLine } from '@remixicon/react'
import Link from 'next/link'
import { useSearchParams } from 'next/navigation'
import { useState } from 'react'
import { useTranslation } from 'react-i18next'
import Badge from '@/app/components/base/badge'
import Button, { buttonVariants } from '@/app/components/base/button'
import { Playground } from '@/app/components/base/icons/src/vender/plugin'
import { Playground, Plugin } from '@/app/components/base/icons/src/vender/plugin'
import {
PortalToFollowElem,
PortalToFollowElemContent,
@ -99,7 +99,7 @@ export const CreationTypeTabs = ({ creationType: creationTypeProp }: CreationTyp
creationType === 'plugins' && 'bg-state-base-hover text-text-secondary',
)}
>
<RiPuzzle2Line className="h-4 w-4 shrink-0" />
<Plugin className="h-4 w-4 shrink-0" />
<span className="system-sm-medium hidden md:inline">
{t('plugins', { ns: 'plugin' })}
</span>