| | |
| | | import Textarea from '@/app/components/base/textarea' |
| | | import Switch from '@/app/components/base/switch' |
| | | import Toast from '@/app/components/base/toast' |
| | | import AppIcon from '@/app/components/base/app-icon' |
| | | // import AppIcon from '@/app/components/base/app-icon' |
| | | import { useProviderContext } from '@/context/provider-context' |
| | | import AppsFull from '@/app/components/billing/apps-full-in-dialog' |
| | | import type { AppIconType } from '@/types/app' |
| | |
| | | <div className='mb-9'> |
| | | {/* icon & name */} |
| | | <div className='pt-2'> |
| | | <div className='py-2 text-sm font-medium leading-[20px] text-gray-900'>{t('app.newApp.captionName')}</div> |
| | | <div className='py-2 text-sm font-medium leading-[20px] text-gray-900'>应用名称</div> |
| | | <div className='flex items-center justify-between space-x-2'> |
| | | <AppIcon |
| | | {/* <AppIcon |
| | | size='large' |
| | | onClick={() => { setShowAppIconPicker(true) }} |
| | | className='cursor-pointer' |
| | |
| | | icon={appIcon.type === 'image' ? appIcon.fileId : appIcon.icon} |
| | | background={appIcon.type === 'image' ? undefined : appIcon.background} |
| | | imageUrl={appIcon.type === 'image' ? appIcon.url : undefined} |
| | | /> |
| | | /> */} |
| | | <Input |
| | | value={name} |
| | | onChange={e => setName(e.target.value)} |
| | |
| | | /> |
| | | </div> |
| | | {/* answer icon */} |
| | | {isEditModal && (appMode === 'chat' || appMode === 'advanced-chat' || appMode === 'agent-chat') && ( |
| | | {/* {isEditModal && (appMode === 'chat' || appMode === 'advanced-chat' || appMode === 'agent-chat') && ( |
| | | <div className='pt-2'> |
| | | <div className='flex justify-between items-center'> |
| | | <div className='py-2 text-sm font-medium leading-[20px] text-gray-900'>{t('app.answerIcon.title')}</div> |
| | |
| | | </div> |
| | | <p className='body-xs-regular text-gray-500'>{t('app.answerIcon.descriptionInExplore')}</p> |
| | | </div> |
| | | )} |
| | | )} */} |
| | | {!isEditModal && isAppsFull && <AppsFull loc='app-explore-create' />} |
| | | </div> |
| | | <div className='flex flex-row-reverse'> |