import * as React from 'react';
import { useWindowDimensions } from 'react-native';
import { useNavigation, DrawerActions } from '@react-navigation/native';
import { useTheme } from 'styled-components/native';
import Box from '@wcpos/components/src/box';
import Button from '@wcpos/components/src/button';
import Icon from '@wcpos/components/src/icon';
// import Logo from '@wcpos/components/src/logo';
import { useT } from '../../../../contexts/translations';
const HeaderLeft = () => {
const { width } = useWindowDimensions();
const theme = useTheme();
const navigation = useNavigation();
const t = useT();
/**
*
*/
const handleOpenDrawer = React.useCallback(() => {
navigation.dispatch(DrawerActions.openDrawer());
}, [navigation]);
/**
*
*/
if (width < theme.screens.small) {
return (
);
}
/**
*
*/
if (width < theme.screens.medium) {
return (
}
type="headerBackground"
style={{ padding: 0 }}
/>
);
}
return null;
};
export default HeaderLeft;