module Model.Config
  ( Config
  , configDecoder
  ) where

import Json.Decode exposing (..)

type alias Config =
  { currency : String
  }

configDecoder : Decoder Config
configDecoder = object1 Config ("currency" := string)

defaultConfig : Config
defaultConfig =
  { currency = "€"
  }