mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-23 21:52:05 +03:00
44 lines
918 B
Elm
44 lines
918 B
Elm
module Examples.MasteryIcon exposing (example, State, Msg)
|
|
|
|
{-|
|
|
|
|
@docs example, State, Msg
|
|
|
|
-}
|
|
|
|
import Category exposing (Category(..))
|
|
import Example exposing (Example)
|
|
import Examples.IconExamples as IconExamples
|
|
import Nri.Ui.Colors.V1 as Colors
|
|
import Nri.Ui.MasteryIcon.V1 as MasteryIcon
|
|
|
|
|
|
{-| -}
|
|
type alias State =
|
|
()
|
|
|
|
|
|
{-| -}
|
|
type alias Msg =
|
|
()
|
|
|
|
|
|
{-| -}
|
|
example : Example State Msg
|
|
example =
|
|
{ name = "Nri.Ui.MasteryIcon.V1"
|
|
, categories = List.singleton Icons
|
|
, state = ()
|
|
, update = \_ state -> ( state, Cmd.none )
|
|
, subscriptions = \_ -> Sub.none
|
|
, view =
|
|
\_ ->
|
|
[ IconExamples.view "Levels"
|
|
[ ( "levelZero", MasteryIcon.levelZero )
|
|
, ( "levelOne", MasteryIcon.levelOne )
|
|
, ( "levelTwo", MasteryIcon.levelTwo )
|
|
, ( "levelThree", MasteryIcon.levelThree )
|
|
]
|
|
]
|
|
}
|