import { Link } from "react-router-dom";
import iconButton from '../../styles/iconButton.svg'
import '../../styles/styles.css'

export const Button: React.FC<any> = ({text}) => {
    return (
        <Link to="/demos" className="link">
        <button className="main-block__button">
          {text.button}
          <div className="main-block__icon_container">
            <img alt="icon" src={iconButton} className="main-block__icon"></img>
          </div>
        </button>
      </Link>
)
}