File size: 672 Bytes
cf8b7da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import classNames from "classnames";

interface Props {
  children: React.ReactNode;
  theme?: "primary" | "secondary" | "white";
  onClick?: () => void;
}
export const Button: React.FC<Props> = ({
  children,
  theme = "primary",
  ...props
}) => {
  return (
    <button
      className={classNames(
        "rounded-full px-6 py-3 font-semibold flex items-center justify-center gap-2.5 border-[2px] transition-all duration-200 max-w-max",
        {
          "bg-primary text-white border-primary": theme === "primary",
          "bg-white text-gray-900 border-white": theme === "white",
        }
      )}
      {...props}
    >
      {children}
    </button>
  );
};