interface SearchPostcodeButtonProps {
  buttonDisabled: boolean;
  onClickFunc: () => void;
}

export default function SearchPostcodeButton({
  buttonDisabled,
  onClickFunc,
}: SearchPostcodeButtonProps) {
  return (
    <button
      type="button"
      disabled={buttonDisabled}
      onClick={onClickFunc}
      className="focus:shadow-outline mt-3 rounded bg-brandtan px-4 py-2 font-bold text-white shadow hover:bg-hovertan focus:outline-none disabled:opacity-25 disabled:hover:bg-hovetan"
    >
      Search postcode
    </button>
  );
}
