import MyIcon from "@/components/Icon/MyIcon"

export default ({icon, text, font = 13, style, className, onClick, back = true}) => {
    return back ?
        <span onClick={onClick} style={{...style}}>
            <MyIcon icon={icon} font={font} style={{...style}} className={className}/> {text}
        </span> :
        <span onClick={onClick} style={{...style}}>
            {text} <MyIcon font={font} style={{...style}} icon={icon} className={className}/>
        </span>

}
