text: import React from "react";
  import { useScopeContext } from "context/ScopeContext";
  
  const ExtendedSearchButton = ({ title, hasJob, handleExtendedSearch }) => {
    const handleClick = async () => {
      handleExtendedSearch();
    };
  
    const scopeContext = useScopeContext();
  
    const gtmClass = function () {
      let res = "";
      if (hasJob == "true") {
        res = "gtmExtendSelect gtmExtendSelectHasJob";
      } else if (hasJob == "false") {
        res = "gtmExtendSelect gtmExtendSelectNoJob";
      }
      return res;
    };
  
    return scopeContext.isJob ? (
      <button className={`${gtmClass()} btn btn-lg btn-dark c-regular-darkbtn my-3`} onClick={handleClick}>
        {title}
      </button>
    ) : (
      ""
    );
  };
  
  export default ExtendedSearchButton;
  