@@ -13,9 +13,6 @@ import { type EditorTab } from './EditorTabs/EditorTabsHandler';
13
13
import { getTabId } from './EditorTabs/DraggableEditorTabs' ;
14
14
import { useScreenType } from '../UI/Responsive/ScreenTypeMeasurer' ;
15
15
import TabsTitlebarTooltip from './TabsTitlebarTooltip' ;
16
- import RaisedButton from '../UI/RaisedButton' ;
17
- import RobotIcon from '../ProjectCreation/RobotIcon' ;
18
- import PreferencesContext from './Preferences/PreferencesContext' ;
19
16
20
17
const WINDOW_DRAGGABLE_PART_CLASS_NAME = 'title-bar-draggable-part' ;
21
18
const WINDOW_NON_DRAGGABLE_PART_CLASS_NAME = 'title-bar-non-draggable-part' ;
@@ -64,7 +61,6 @@ export default function TabsTitlebar({
64
61
onOpenAskAi,
65
62
} : TabsTitlebarProps ) {
66
63
const isTouchscreen = useScreenType ( ) === 'touch' ;
67
- const preferences = React . useContext ( PreferencesContext ) ;
68
64
const gdevelopTheme = React . useContext ( GDevelopThemeContext ) ;
69
65
const backgroundColor = gdevelopTheme . titlebar . backgroundColor ;
70
66
const [ tooltipData , setTooltipData ] = React . useState < ?{ |
@@ -164,7 +160,7 @@ export default function TabsTitlebar({
164
160
< MenuIcon />
165
161
</ IconButton >
166
162
{ renderTabs ( onEditorTabHovered , onEditorTabClosing ) }
167
- { ! preferences . values . showAiAskButtonInTitleBar ||
163
+ { /* { !preferences.values.showAiAskButtonInTitleBar ||
168
164
hasAskAiOpened ? null : (
169
165
<div style={styles.askAiContainer}>
170
166
<RaisedButton
@@ -174,7 +170,7 @@ export default function TabsTitlebar({
174
170
onClick={onOpenAskAi}
175
171
/>
176
172
</div>
177
- ) }
173
+ )} */ }
178
174
< TitleBarRightSafeMargins />
179
175
{ tooltipData && (
180
176
< TabsTitlebarTooltip
0 commit comments