'use client'; import { FC } from 'react'; import styles from '@/components/home/Home.module.css'; import Image from 'next/image'; interface IButtonMining { isLoading: boolean; typeButton: 'pending' | 'farming' | 'claim_reward'; remainingTime: string | null; farm_amount: number | undefined; handleStartFarming: () => void; handleClaimRewards: () => void; } const ButtonMining: FC = ({ isLoading, typeButton, remainingTime, farm_amount, handleStartFarming, handleClaimRewards, }) => { if (typeButton === 'pending') { return ( <> ); } if (typeButton === 'farming' && remainingTime) { return ( <> ); } if (typeButton === 'claim_reward') { return ( <> ); } }; export default ButtonMining;