Files
docspell/modules/webapp/src/main/elm/Util/Contact.elm
2021-09-21 22:35:38 +02:00

18 lines
351 B
Elm

{-
Copyright 2020 Eike K. & Contributors
SPDX-License-Identifier: AGPL-3.0-or-later
-}
module Util.Contact exposing (toString)
import Api.Model.Contact exposing (Contact)
toString : List Contact -> String
toString contacts =
List.map (\c -> c.kind ++ ": " ++ c.value) contacts
|> List.intersperse ", "
|> String.concat