import React from 'react';

interface Props {
  variant?: 'contained' | 'outlined';
  size?: 'sm' | 'md' | 'lg';
  children: string;
}


const variants = {
  contained: 'bg-black text-white',
  outlined: 'border-2 border-black',
};

const sizes = {
  lg: 'p-5',
  md: 'p-4',
  sm: 'p-3',
};

const Button: React.FC<Props> = ({ variant = 'contained', size = 'md', children }) => {
  return (
    <button
      type="button"
      className={`m-3 font-bold tracking-wide hover:underline focus:outline-none ${variants[variant]} ${sizes[size]}`}
    >
      {children}
    </button>
  );
};

export default Button;
