import { storage } from "@vendetta/plugin"; import { useProxy } from "@vendetta/storage"; import { React, ReactNative as RN, stylesheet } from "@vendetta/metro/common"; import { semanticColors } from "@vendetta/ui"; import { getAssetIDByName } from "@vendetta/ui/assets"; import { Forms } from "@vendetta/ui/components"; import BetterTableRowGroup from "../components/BetterTableRowGroup"; const { FormSwitchRow, FormRow } = Forms; export default function SpotifySettingsPage() { useProxy(storage); const [, forceUpdate] = React.useReducer((x) => x + 1, 0); const styles = stylesheet.createThemedStyleSheet({ infoText: { fontSize: 14, color: semanticColors.TEXT_MUTED, textAlign: "center", lineHeight: 20, }, }); return ( } value={storage.enabledCommands.spotifyTrack} onValueChange={(v) => { storage.enabledCommands.spotifyTrack = v; storage.pendingRestart = true; forceUpdate(); }} /> } value={storage.enabledCommands.spotifyAlbum} onValueChange={(v) => { storage.enabledCommands.spotifyAlbum = v; storage.pendingRestart = true; forceUpdate(); }} /> } value={storage.enabledCommands.spotifyArtists} onValueChange={(v) => { storage.enabledCommands.spotifyArtists = v; storage.pendingRestart = true; forceUpdate(); }} /> } value={storage.enabledCommands.spotifyCover} onValueChange={(v) => { storage.enabledCommands.spotifyCover = v; storage.pendingRestart = true; forceUpdate(); }} /> These commands allow you to share your current Spotify activity in Discord. Make sure you have Spotify connected to Discord for these commands to work properly. ); }