| | |
| | | import CreateAppModal from '@/app/components/app/create-app-modal' |
| | | import CreateFromDSLModal, { CreateFromDSLModalTab } from '@/app/components/app/create-from-dsl-modal' |
| | | import { useProviderContext } from '@/context/provider-context' |
| | | import { FileArrow01, FilePlus01, FilePlus02 } from '@/app/components/base/icons/src/vender/line/files' |
| | | import { FilePlus01 } from '@/app/components/base/icons/src/vender/line/files' |
| | | import cn from '@/utils/classnames' |
| | | |
| | | export type CreateAppCardProps = { |
| | |
| | | <div className='px-6 pt-2 pb-1 text-xs font-medium leading-[18px] text-text-tertiary'>{t('app.createApp')}</div> |
| | | <button className='w-full flex items-center mb-1 px-6 py-[7px] rounded-lg text-[13px] font-medium leading-[18px] text-text-tertiary cursor-pointer hover:text-text-secondary hover:bg-state-base-hover' onClick={() => setShowNewAppModal(true)}> |
| | | <FilePlus01 className='shrink-0 mr-2 w-4 h-4' /> |
| | | {t('app.newApp.startFromBlank')} |
| | | 创建智能体 |
| | | </button> |
| | | <button className='w-full flex items-center px-6 py-[7px] rounded-lg text-[13px] font-medium leading-[18px] text-text-tertiary cursor-pointer hover:text-text-secondary hover:bg-state-base-hover' onClick={() => setShowNewAppTemplateDialog(true)}> |
| | | {/* <button className='w-full flex items-center px-6 py-[7px] rounded-lg text-[13px] font-medium leading-[18px] text-text-tertiary cursor-pointer hover:text-text-secondary hover:bg-state-base-hover' onClick={() => setShowNewAppTemplateDialog(true)}> |
| | | <FilePlus02 className='shrink-0 mr-2 w-4 h-4' /> |
| | | {t('app.newApp.startFromTemplate')} |
| | | </button> |
| | |
| | | className='w-full flex items-center px-6 py-[7px] rounded-lg text-[13px] font-medium leading-[18px] text-text-tertiary cursor-pointer hover:text-text-secondary hover:bg-state-base-hover'> |
| | | <FileArrow01 className='shrink-0 mr-2 w-4 h-4' /> |
| | | {t('app.importDSL')} |
| | | </button> |
| | | </button> */} |
| | | </div> |
| | | |
| | | <CreateAppModal |