A music player that connects to your cloud/distributed storage.
at main 1.1 kB view raw
1module UI.Syncing.ContextMenu exposing (syncDataMenu) 2 3import ContextMenu exposing (..) 4import Coordinates exposing (Coordinates) 5import Svg 6import UI.Svg.Elements 7import UI.Syncing.Common exposing (startDropbox, startIpfs, startRemoteStorage) 8import UI.Types exposing (Msg) 9import User.Layer exposing (dropboxMethod, ipfsMethod, methodName, remoteStorageMethod) 10 11 12 13-- 🔱 14 15 16syncDataMenu : Coordinates -> ContextMenu Msg 17syncDataMenu = 18 ContextMenu 19 [ Item 20 { icon = \_ _ -> Svg.map never (UI.Svg.Elements.dropboxLogo 16) 21 , label = methodName dropboxMethod 22 , msg = startDropbox 23 , active = False 24 } 25 , Item 26 { icon = \_ _ -> Svg.map never (UI.Svg.Elements.remoteStorageLogo 16) 27 , label = methodName remoteStorageMethod 28 , msg = startRemoteStorage 29 , active = False 30 } 31 , Item 32 { icon = \_ _ -> Svg.map never (UI.Svg.Elements.ipfsLogo 16) 33 , label = methodName ipfsMethod 34 , msg = startIpfs 35 , active = False 36 } 37 ]