import React from "react";

interface SearchButtonProps {
  onClick?: () => void;
  type?: "button" | "submit";
  children: React.ReactNode;
  className?: string;
}

const SearchButton: React.FC<SearchButtonProps> = ({
  onClick,
  type = "submit",
  children,
  className = "",
}) => {
  return (
    <button
      type={type}
      onClick={onClick}
      className={`max-w-44 max-h-16 bg-[#DD577F] hover:bg-[#333333] text-white font-creato font-medium text-base py-3 px-10 transition-colors duration-200 cursor-pointer ${className}`}
    >
      {children}
    </button>
  );
};

export default SearchButton;
