HA
Size: a a a
HA
V🦖
V🦖
V🦖
VC
// mobile icons
import PopularMobile from "public/images/tabs/mobile/popular.svg";
import HdMobile from "public/images/tabs/mobile/hd.svg";
import AudioMobile from "public/images/tabs/mobile/audio.svg";
import TotalMobile from "public/images/tabs/mobile/total.svg";
// desktop icons
import Popular from "public/images/tabs/desktop/popular.svg";
import Hd from "public/images/tabs/desktop/hd.svg";
import Audio from "public/images/tabs/desktop/audio.svg";
import Total from "public/images/tabs/desktop/total.svg";
const icons = {
popular: <Popular />,
hd: <Hd />,
audio: <Audio />,
total: <Total />,
};
const mobileIcons = {
popular: <PopularMobile />,
hd: <HdMobile />,
audio: <AudioMobile />,
total: <TotalMobile />,
};
export {
icons,
mobileIcons,
};
// id это audio, popular и тд
<SVG isActive={id === activePanel}>{isMobile ? mobileIcons[id] : icons[id]}</SVG>
<SVG isActive={id === activePanel}> <IconComponent id={id} /> </SVG>
E
V🦖
V🦖
V🦖
E
V🦖
V🦖
E
E
V🦖
E
V🦖
E
V🦖