|
|
|
@ -6,6 +6,8 @@ import { useEffect, useState } from 'react';
|
|
|
|
|
|
|
|
|
|
import { useShallow } from 'zustand/react/shallow';
|
|
|
|
|
|
|
|
|
|
import IconStyle from '@/components/Icon/heart.module.css';
|
|
|
|
|
|
|
|
|
|
import { IconHeart } from '@/components';
|
|
|
|
|
import { apiCollect } from '@/services';
|
|
|
|
|
import { useAudioStore } from '@/store';
|
|
|
|
@ -120,7 +122,7 @@ export default function CollectButton({
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
className={`flex flex-row items-center gap-[${gap}px] w-fit h-fit cursor-pointer group ${className}`}
|
|
|
|
|
className={`flex flex-row items-center gap-[${gap}px] w-fit h-fit cursor-pointer group ${IconStyle['collect-button']} ${className}`}
|
|
|
|
|
onClick={handleCollect}
|
|
|
|
|
>
|
|
|
|
|
{iconPosition === 'left' && <IconHeart active={haveCollect} animateState={animate} color={color} />}
|
|
|
|
|