import React, { useEffect } from 'react';

import './Button.scss';

export interface ButtonProps {
  children?: JSX.Element | string;
  onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
}

export function Button({ children, onClick }: ButtonProps) {
  useEffect(() => {
    console.log('lksdg')
  }, [])
  return (
    <button className={"button"} type="button" onClick={onClick}>
      {children}
    </button>
  );
}
