@@ -30,22 +30,22 @@ export function AiChatButtons({ theme, plugin, sendPrompt }: AiChatButtonsProps)
3030 // plugin && await plugin.call('remixaiassistant', 'handleExternalMessage', 'Create a file for me')
3131 }
3232 } ,
33- {
34- label : 'Learn' ,
35- icon : `${ theme ?. toLowerCase ( ) === 'dark' ? 'text-remix-ai' : 'text-remix-ai-light' } fas fa-brain` ,
36- color : '' ,
37- action : ( ) => {
38- sendPrompt ( 'I would like to learn about something...' )
39- }
40- } ,
41- {
42- label : 'Plan a project' ,
43- icon : `${ theme ?. toLowerCase ( ) === 'dark' ? 'text-remix-ai' : 'text-remix-ai-light' } fas fa-list` ,
44- color : '' ,
45- action : ( ) => {
46- sendPrompt ( 'Plan a new project' )
47- }
48- } ,
33+ // {
34+ // label: 'Learn',
35+ // icon: `${theme?.toLowerCase() === 'dark' ? 'text-remix-ai' : 'text-remix-ai-light'} fas fa-brain`,
36+ // color: '',
37+ // action: () => {
38+ // sendPrompt('I would like to learn about something...')
39+ // }
40+ // },
41+ // {
42+ // label: 'Plan a project',
43+ // icon: `${theme?.toLowerCase() === 'dark' ? 'text-remix-ai' : 'text-remix-ai-light'} fas fa-list`,
44+ // color: '',
45+ // action: () => {
46+ // sendPrompt('Plan a new project')
47+ // }
48+ // },
4949 {
5050 label : 'New workspace' ,
5151 icon : `${ theme ?. toLowerCase ( ) === 'dark' ? 'text-remix-ai' : 'text-remix-ai-light' } fas fa-plus` ,
@@ -54,23 +54,23 @@ export function AiChatButtons({ theme, plugin, sendPrompt }: AiChatButtonsProps)
5454 sendPrompt ( 'Create a new workspace' )
5555 }
5656 } ,
57- {
58- label : 'Deploy' ,
59- icon : `${ theme ?. toLowerCase ( ) === 'dark' ? 'text-remix-ai' : 'text-remix-ai-light' } fakit fa-remixdeploy` ,
60- color : '' ,
61- action : ( ) => {
62- sendPrompt ( 'Deploy a contract' )
63- }
64- } ,
65- {
66- label : 'Generate dapp' ,
67- icon : `${ theme ?. toLowerCase ( ) === 'dark' ? 'text-remix-ai' : 'text-remix-ai-light' } fas fa-jet-fighter` ,
68- color : '' ,
69- action : ( ) => {
70- sendPrompt ( 'Create a Dapp' )
71- console . log ( 'Generate Dapp' )
72- }
73- }
57+ // {
58+ // label: 'Deploy',
59+ // icon: `${theme?.toLowerCase() === 'dark' ? 'text-remix-ai' : 'text-remix-ai-light'} fakit fa-remixdeploy`,
60+ // color: '',
61+ // action: () => {
62+ // sendPrompt('Deploy a contract')
63+ // }
64+ // },
65+ // {
66+ // label: 'Generate dapp',
67+ // icon: `${theme?.toLowerCase() === 'dark' ? 'text-remix-ai' : 'text-remix-ai-light'} fas fa-jet-fighter`,
68+ // color: '',
69+ // action: () => {
70+ // sendPrompt('Create a Dapp')
71+ // console.log('Generate Dapp')
72+ // }
73+ // }
7474 ]
7575
7676 return (
@@ -80,7 +80,7 @@ export function AiChatButtons({ theme, plugin, sendPrompt }: AiChatButtonsProps)
8080 < button
8181 key = { `${ starter . label } -${ index } ` }
8282 data-id = { `remix-ai-assistant-starter-${ starter . label } -${ index } ` }
83- className = { `mb-2 border-0 rounded-4 text-nowrap gap-2 btn btn-lg btn-light` }
83+ className = { `mb-2 border-0 rounded-4 text-nowrap gap-2 btn ${ theme ?. toLowerCase ( ) === 'dark' ? ' btn-dark' : ' btn-light text-light-emphasis' } ` }
8484 // style={{ backgroundColor: theme?.toLowerCase() === 'dark' ? 'btn btn-lg p-2 btn-light' : 'btn btn-lg p-2 btn-dark' }}
8585 onClick = { starter . action }
8686 >
@@ -89,12 +89,12 @@ export function AiChatButtons({ theme, plugin, sendPrompt }: AiChatButtonsProps)
8989 </ button >
9090 ) ) }
9191 </ div >
92- < div className = "d-flex justify-content-between w-100" >
92+ < div className = "d-flex justify-content-between w-100 overflow-x-auto " >
9393 { btnList . slice ( 3 ) . map ( ( starter , index ) => (
9494 < button
9595 key = { `${ starter . label } -${ index } ` }
9696 data-id = { `remix-ai-assistant-starter-${ starter . label } -${ index } ` }
97- className = { `mb-2 border-0 rounded-4 text-nowrap gap-2 btn btn-lg btn- light` }
97+ className = { `mb-2 border-0 rounded-4 text-nowrap gap-2 btn btn-light` }
9898 // style={{ backgroundColor: theme?.toLowerCase() === 'dark' ? 'btn btn-lg p-2 btn-light' : 'btn btn-lg btn-dark p-2' }}
9999 onClick = { ( ) => { } }
100100 >
0 commit comments