import React from "react";

export default function BackButton(
    {
        text,
        callBackFunction
    }:{
        text:string,
        callBackFunction: Function;
    }){

    function callBackButton(){
        callBackFunction();
    }

    return (
        <div className="text-center mt-4">
            <button
                onClick={callBackButton}
                className="text-muted hover:text-primary hover:scale-105 transition-all duration-200 font-medium px-3 py-1.5 rounded-lg hover:bg-primary/10"
            >
                {
                    text
                }
            </button>
        </div>
    )
}
