import "./styles.sass";

const Button = (props) => {
    return (
        <a href={props.to} className="btn-link">
            <button className="primary-btn">
                {props.image ? <img src={props.image} alt="i" className="btn-icon"/> : <></>}
                {props.text}
            </button>
        </a>
    )
}

export default Button;