import React, { } from "react"; import { XStack, YStack } from "tamagui"; import { usePlayerContext } from "../../player/provider"; import { BottomTabNavigationEventMap } from "@react-navigation/bottom-tabs"; import { NavigationHelpers, ParamListBase } from "@react-navigation/native"; import { BlurView } from "@react-native-community/blur"; import Icon from "../Global/helpers/icon"; import { Text } from "../Global/helpers/text"; import { Colors } from "../../enums/colors"; import { CachedImage } from "@georstat/react-native-image-cache"; import { ImageType } from "@jellyfin/sdk/lib/generated-client/models"; import { getImageApi } from "@jellyfin/sdk/lib/utils/api"; import { queryConfig } from "../../api/queries/query.config"; import TextTicker from 'react-native-text-ticker'; import PlayPauseButton from "./helpers/buttons"; import { useSafeAreaFrame } from "react-native-safe-area-context"; import Client from "../../api/client"; export function Miniplayer({ navigation }: { navigation : NavigationHelpers }) : React.JSX.Element { const { nowPlaying, useSkip } = usePlayerContext(); const { width } = useSafeAreaFrame(); return ( { nowPlaying && ( navigation.navigate("Player")} > {nowPlaying?.title ?? "Nothing Playing"} {nowPlaying?.artist ?? ""} useSkip.mutate(undefined)} /> )} ) }