diff --git a/src/components/icons/Heart.tsx b/src/components/icons/Heart.tsx index b7dacc26..51a87487 100644 --- a/src/components/icons/Heart.tsx +++ b/src/components/icons/Heart.tsx @@ -1,19 +1,28 @@ +'use client'; + +import { useState } from 'react'; + import { Colors, colors } from '@styles/colorPalette'; interface HeartProps { width: number height:number color?: Colors - fillColor?: Colors - onClick?: () => void + changeColor?: Colors } function Heart({ - width, height, color = 'gray400', onClick, fillColor = 'white', + width, height, color = 'gray400', changeColor = 'pink', }: HeartProps) { + const [isClicked, setIsClicked] = useState(false); + + const handleHeartClick = () => { + setIsClicked((prev) => { return !prev; }); + }; + return ( - - + + ); }