import React from 'react';
import { getImageUrl } from 'educoder';
import './Component.scss';

function Cards({img , title, desc , rightBtn}){
  return(
    <div className="cards">
      <div className="img"><img src={getImageUrl(`images/${img}`)} alt=""/></div>
      <div className="content">
        <p className="titles">
          <span>{title}</span>
          {rightBtn}
        </p>
        <div className="desc">
          {desc}
        </div>
      </div>
    </div>
  )
}
export default Cards;