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