import React from 'react'; import { notesnook } from '../../../e2e/test.ids'; import { useTracked } from '../../provider'; import Navigation from '../../services/Navigation'; import { SIZE } from '../../utils/SizeUtils'; import { ActionIcon } from '../ActionIcon'; export const HeaderLeftMenu = () => { const [state] = useTracked(); const {colors, headerMenuState, currentScreen, deviceMode} = state; const onLeftButtonPress = () => { if (headerMenuState) { Navigation.openDrawer() return; } Navigation.goBack(); }; return ( <> {deviceMode === 'mobile' || currentScreen === 'search' ? ( ) : undefined} ); };