diff --git a/components/Global/icon.tsx b/components/Global/icon.tsx
index 91fc7670..968b04be 100644
--- a/components/Global/icon.tsx
+++ b/components/Global/icon.tsx
@@ -3,11 +3,28 @@ import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityI
import { Colors } from "react-native/Libraries/NewAppScreen"
const iconDimensions = {
- width: 25,
- height: 25
+ width: 50,
+ height: 50
}
-export default function Icon({ name }: { name: string }) : React.JSX.Element {
- return
+const largeDimensions = {
+ width: 100,
+ height: 100
+}
+export default function Icon({ name, onPress, large }: { name: string, onPress?: Function, large?: boolean }) : React.JSX.Element {
+
+ let dimensions = large ? largeDimensions : iconDimensions
+
+ return (
+ {
+ if (onPress)
+ onPress();
+ }}
+ {...dimensions}
+ />
+ )
}
\ No newline at end of file
diff --git a/components/Login/helpers/server-library.tsx b/components/Login/helpers/server-library.tsx
index 8d90caba..b81c6e6e 100644
--- a/components/Login/helpers/server-library.tsx
+++ b/components/Login/helpers/server-library.tsx
@@ -46,7 +46,7 @@ export default function ServerLibrary(): React.JSX.Element {
Select Music Library
{ isPending ? (
-
+
) : (
}) : React.JSX.Element {
+ const playbackState = usePlaybackState();
+
const activeTrack = useActiveTrack() as JellifyTrack | undefined;
const { setShowPlayer } = usePlayerContext();
@@ -27,12 +29,25 @@ export function Miniplayer({ navigation }: { navigation : NavigationHelpers {
pause()
}}>
+
+
+ { playbackState.state === State.Playing && (
-
+ )}
-
+ { playbackState.state === State.Paused && (
+ play()} />
+ )}
+
+ { playbackState.state === State.Buffering || playbackState.state === State.Loading && (
+
+ )}
+
+ skipToNext()}
+ />
)