Something went wrong. Try again.
A music player that connects to your cloud/distributed storage. forked from tokono.ma/diffuse
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738module UI.Syncing.ContextMenu exposing (syncDataMenu)
import ContextMenu exposing (..)import Coordinates exposing (Coordinates)import Svgimport UI.Svg.Elementsimport UI.Syncing.Common exposing (startDropbox, startIpfs, startRemoteStorage)import UI.Types exposing (Msg)import User.Layer exposing (dropboxMethod, ipfsMethod, methodName, remoteStorageMethod)
-- 🔱
syncDataMenu : Coordinates -> ContextMenu MsgsyncDataMenu = ContextMenu [ Item { icon = \_ _ -> Svg.map never (UI.Svg.Elements.dropboxLogo 16) , label = methodName dropboxMethod , msg = startDropbox , active = False } , Item { icon = \_ _ -> Svg.map never (UI.Svg.Elements.remoteStorageLogo 16) , label = methodName remoteStorageMethod , msg = startRemoteStorage , active = False } , Item { icon = \_ _ -> Svg.map never (UI.Svg.Elements.ipfsLogo 16) , label = methodName ipfsMethod , msg = startIpfs , active = False } ]