module LoggedIn.Home.View.Search exposing ( paymentsSearch ) import Html exposing (..) import Html.Attributes exposing (..) import Html.Events exposing (..) import Html.App as Html import Form exposing (Form) import View.Form as Form import Msg exposing (Msg) import LoggedIn.Msg as LoggedInMsg import LoggedIn.Home.Msg as HomeMsg import LoggedData exposing (LoggedData) import LoggedIn.Home.Model as HomeModel import Model.Translations exposing (getMessage) paymentsSearch : LoggedData -> HomeModel.Model -> Html Msg paymentsSearch loggedData { search } = let htmlMap = Html.map (Msg.UpdateLoggedIn << LoggedInMsg.HomeMsg << HomeMsg.SearchMsg) in Html.div [ class "search" ] [ Form.textInput loggedData.translations search htmlMap "searchText" ]