() => {
const [showDrawer, setShowDrawer] = React.useState(false);
const { isLargeMobile } = useMediaQuery();
return (
<>
{showDrawer && (
<Drawer
onClose={() => {
setShowDrawer(false);
}}
shown={showDrawer}
>
<LinkList>
<TextLink type="secondary">English</TextLink>
<TextLink type="secondary">Help</TextLink>
<TextLink type="secondary">My account</TextLink>
</LinkList>
</Drawer>
)}
<NavigationBar
onMenuOpen={isLargeMobile ? undefined : () => setShowDrawer(true)}
>
<Stack
direction="row"
align="center"
justify={isLargeMobile ? "center" : "start"}
>
<ButtonLink href="https://orbit.kiwi">
<div
style={{
maxWidth: "40px",
overflow: "hidden",
}}
>
<img
src="https://orbit.kiwi/files/2019/08/cropped-OrbitLogo-1.png"
alt="Orbit by Kiwi.com"
height="40px"
/>
</div>
</ButtonLink>
<ButtonLink
type="secondary"
iconLeft={<AirplaneTakeoff />}
title="Travel"
/>
<ButtonLink
type="secondary"
iconLeft={<Accommodation />}
title="Rooms"
/>
<ButtonLink
type="secondary"
iconLeft={<Partners />}
title="Careers"
/>
{isLargeMobile && (
<Stack justify="end" inline>
<ButtonLink
type="secondary"
iconLeft={<CountryFlag code="gb" />}
title="English"
/>
<ButtonLink
type="secondary"
iconLeft={<QuestionCircle />}
title="Help"
/>
<ButtonLink
type="secondary"
iconLeft={<AccountCircle />}
title="My account"
/>
</Stack>
)}
</Stack>
</NavigationBar>
</>
);
};