import React, { Fragment, useState } from 'react' import { boolean } from '@storybook/addon-knobs' import { color, font } from '../_utils/branding' import { Avatar } from '../avatar' import { Button, ButtonStatus } from '../button' import { ArrowIcon } from '../icon/arrowIcon' import { BankIcon } from '../icon/bankIcon' import { BubbleIcon } from '../icon/bubbleIcon' import { CoinIcon } from '../icon/coinIcon' import { CrossDiscIcon } from '../icon/crossDiscIcon' import { HomeIcon } from '../icon/homeIcon' import { MyRidesIcon } from '../icon/myRides' import { ProfileIcon } from '../icon/profileIcon' import { ItemChoice } from '../itemChoice' import { Drawer, DropdownButton, Menu, TopBar } from './index' const leftAction = ( ) const rightAction = ( Need help? ) const centerContent = (
Trip Paris → Lyon
) export const SimpleTopBar = (): JSX.Element => ( ) export const LoggedOutTopBar = (): JSX.Element => { const [drawerOpened, setDrawerOpened] = useState(false) const dropdownButton = ( setDrawerOpened(!drawerOpened)}> ) return ( setDrawerOpened(false)}> ) } export const LoggedInTopBar = (): JSX.Element => { const [drawerOpened, setDrawerOpened] = useState(false) const dropdownButton = ( setDrawerOpened(!drawerOpened)}> ) return ( setDrawerOpened(false)}> } /> } /> } /> } /> } /> } /> } /> ) }