| 1234567891011121314151617181920212223242526272829303132333435363738394041 | 
							- import type { FC } from 'react'
 
- import { RiEqualizer2Line } from '@remixicon/react'
 
- import { CubeOutline } from '@/app/components/base/icons/src/vender/line/shapes'
 
- import cn from '@/utils/classnames'
 
- import { useTranslation } from 'react-i18next'
 
- type ModelTriggerProps = {
 
-   open: boolean
 
-   className?: string
 
- }
 
- const ModelTrigger: FC<ModelTriggerProps> = ({
 
-   open,
 
-   className,
 
- }) => {
 
-   const { t } = useTranslation()
 
-   return (
 
-     <div
 
-       className={cn(
 
-         'flex cursor-pointer items-center gap-0.5 rounded-lg bg-components-input-bg-normal p-1 hover:bg-components-input-bg-hover', open && 'bg-components-input-bg-hover',
 
-         className,
 
-       )}
 
-     >
 
-       <div className='flex grow items-center'>
 
-         <div className='mr-1.5 flex h-4 w-4 items-center justify-center rounded-[5px] border border-dashed border-divider-regular'>
 
-           <CubeOutline className='h-3 w-3 text-text-quaternary' />
 
-         </div>
 
-         <div
 
-           className='truncate text-[13px] text-text-tertiary'
 
-           title='Configure model'
 
-         >
 
-           {t('plugin.detailPanel.configureModel')}
 
-         </div>
 
-       </div>
 
-       <div className='flex h-4 w-4 shrink-0 items-center justify-center'>
 
-         <RiEqualizer2Line className='h-3.5 w-3.5 text-text-tertiary' />
 
-       </div>
 
-     </div>
 
-   )
 
- }
 
- export default ModelTrigger
 
 
  |