|
|
|
@ -14,17 +14,17 @@ import useAudioStore from '@/store/audio';
|
|
|
|
|
const PlayerBar = ({ className }: { className?: string }) => {
|
|
|
|
|
const pathname = usePathname();
|
|
|
|
|
|
|
|
|
|
const { audioId, showCard, setShowCard, useShowPlayer } = useAudioStore(
|
|
|
|
|
const { audioId, showCard, setShowCard } = useAudioStore(
|
|
|
|
|
useShallow((state) => {
|
|
|
|
|
return {
|
|
|
|
|
audioId: state.audioId,
|
|
|
|
|
useShowPlayer: state.useShowPlayer,
|
|
|
|
|
// useShowPlayer: state.useShowPlayer,
|
|
|
|
|
showCard: state.showCard,
|
|
|
|
|
setShowCard: state.setShowCard,
|
|
|
|
|
};
|
|
|
|
|
}),
|
|
|
|
|
);
|
|
|
|
|
const showPlayer = useShowPlayer();
|
|
|
|
|
// const showPlayer = useShowPlayer();
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (showCard) setShowCard(false);
|
|
|
|
|