import { IMAGE_BASE_URL } from "../../api/config";

const MediaButton = ({ img: Image, link, isStatic = true }: any) => {

    return (
        <Link to={link}>
            <div className='MediaButton'>
                <span>{isStatic ? <span>{<Image />}</span> : <img src={IMAGE_BASE_URL + Image} alt="ak" width={14} />}</span>
            </div>
        </Link>
    );
};

export default MediaButton;
