"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;