import { Pressable } from './buttonStyle';

const Button = ({ href, type = 'button', icon, children, ...props }) => (
	<Pressable
    type={type}
    as={href ? 'a' : 'button'}
    href={href}
    {...props}
  >
    {icon}
    {children}
  </Pressable>
);

export default Button;
