diff --git a/src/components/BtnLikeIcon.tsx b/src/components/BtnLikeIcon.tsx new file mode 100644 index 0000000..a308549 --- /dev/null +++ b/src/components/BtnLikeIcon.tsx @@ -0,0 +1,45 @@ +"use client"; + +import React, { FC, useState } from "react"; + +export interface BtnLikeIconProps { + className?: string; + colorClass?: string; + isLiked?: boolean; +} + +const BtnLikeIcon: FC = ({ + className = "", + colorClass = "text-white bg-black bg-opacity-30 hover:bg-opacity-50", + isLiked = false, +}) => { + const [likedState, setLikedState] = useState(isLiked); + + return ( +
setLikedState(!likedState)} + > + + + +
+ ); +}; + +export default BtnLikeIcon;