import Player from './Player' import { player, state } from '@/web/store' import { getCoverColor } from '@/web/utils/common' import { colord } from 'colord' import IconButton from '../IconButton' import SvgIcon from '../SvgIcon' import Lyric from './Lyric' import { motion, AnimatePresence } from 'framer-motion' import Lyric2 from './Lyric2' import useCoverColor from '@/web/hooks/useCoverColor' import cx from 'classnames' import { useMemo } from 'react' import { useSnapshot } from 'valtio' const LyricPanel = () => { const stateSnapshot = useSnapshot(state) const playerSnapshot = useSnapshot(player) const track = useMemo(() => playerSnapshot.track, [playerSnapshot.track]) const bgColor = useCoverColor(track?.al?.picUrl ?? '') return ( {stateSnapshot.uiStates.showLyricPanel && ( {/* Drag area */}
{/* */}
(state.uiStates.showLyricPanel = false)}>
)}
) } export default LyricPanel