github.com/simpleiot/simpleiot@v0.18.3/frontend/src/UI/ViewIf.elm (about)

     1  module UI.ViewIf exposing (viewIf)
     2  
     3  import Element exposing (..)
     4  
     5  
     6  viewIf : Bool -> Element msg -> Element msg
     7  viewIf condition element =
     8      if condition then
     9          element
    10  
    11      else
    12          Element.none