module View.Header ( renderHeader ) where import Html exposing (..) import Html.Attributes exposing (..) import Html.Events exposing (..) import ServerCommunication as SC import ServerCommunication exposing (serverCommunications) import Model exposing (Model) import Model.View exposing (..) import View.Icon exposing (renderIcon) renderHeader : Model -> Html renderHeader model = header [] [ h1 [] [ text "Shared Cost" ] , case model.view of LoadingView -> text "" SignInView _ -> text "" PaymentView _ -> button [ class "signOut" , onClick serverCommunications.address SC.SignOut ] [ renderIcon "power-off" ] ]