"use client";
import { useModal } from "@/context/ModalContext";
const FormBtn = ({
  modaltitle,
  icon = "",
  className = "",
  aclassName = "",
}) => {
  const { toggleModal } = useModal();
  return (
    <>
      <a onClick={() => toggleModal(modaltitle)} className={aclassName}>
        <button className={className}>
          {modaltitle}
          {icon}
        </button>
      </a>
    </>
  );
};
export default FormBtn;
