import { LinearProgress } from "@mui/material"; import { AnimatePresence, motion } from "motion/react"; import React from "react"; import { useShallow } from "zustand/shallow"; import { usePlaybackStore } from "@/utils/store/playback"; const VolumeChangeOverlay = () => { const { playerVolume, showVolumeIndicator } = usePlaybackStore( useShallow((state) => ({ playerVolume: state.playerState.volume, showVolumeIndicator: state.isVolumeInidcatorVisible, })), ); return ( {showVolumeIndicator && (
{playerVolume > 0.7 ? "volume_up" : "volume_down"}
)}
); }; export default VolumeChangeOverlay;