import { memo } from 'react' import Button, { Color as ButtonColor } from '@/components/Button' import Skeleton from '@/components/Skeleton' import SvgIcon from '@/components/SvgIcon' import TracksList from '@/components/TracksList' import usePlaylist from '@/hooks/usePlaylist' import useScroll from '@/hooks/useScroll' import useTracksInfinite from '@/hooks/useTracksInfinite' import { player } from '@/store' import { formatDate, resizeImage } from '@/utils/common' const enableRenderLog = true const Header = memo( ({ playlist, isLoading, handlePlay, }: { playlist: Playlist | undefined isLoading: boolean handlePlay: () => void }) => { if (enableRenderLog) console.debug('Rendering Playlist.tsx Header') const coverUrl = resizeImage(playlist?.coverImgUrl || '', 'lg') return ( <> {/* Header background */}