import React from "react" import loadable from "@loadable/component" import SyncModel from "models/sync" // TODO: Make logout button require a valid session to be not disabled export default { icon: "MdSync", label: "Sync", ctxData: async () => { const spotifyAccount = await SyncModel.spotifyCore.getData().catch((err) => { return null }) return { spotifyAccount } }, settings: [ { id: "sync_settings", icon: "MdSync", title: "Sync Settings", description: "Sync your settings across all devices stored in the cloud", group: "sync.settings", component: "Switch" }, { id: "spotify", icon: "SiSpotify", title: "Spotify", description: "Sync your Spotify account to get access to Spaces, playlists and more", group: "sync.accounts", component: loadable(() => import("./components/spotifySync")), storaged: false }, { id: "soundcloud", icon: "SiSoundcloud", title: "SoundCloud", group: "sync.accounts", component: () =>

Not implemented

, storaged: false }, { id: "youtube", icon: "SiYoutube", title: "YouTube", group: "sync.accounts", component: () =>

Not implemented

, storaged: false }, { id: "twitch", icon: "SiTwitch", title: "Twitch", group: "sync.accounts", component: () =>

Not implemented

, storaged: false }, { id: "twitter", icon: "SiTwitter", title: "Twitter", group: "sync.accounts", component: () =>

Not implemented

, storaged: false }, { id: "instagram", icon: "SiInstagram", title: "Instagram", group: "sync.accounts", component: () =>

Not implemented

, storaged: false }, { id: "mixcloud", icon: "SiMixcloud", title: "Mixcloud", group: "sync.accounts", component: () =>

Not implemented

, storaged: false }, { id: "discord", icon: "SiDiscord", title: "Discord", group: "sync.accounts", component: () =>

Not implemented

, storaged: false } ] }