 //
 
 import UIKit
+import AlamofireImage
 
 class JobTableViewCell: UITableViewCell {
 

	
	private lazy var companyLogoImageView: UIImageView = {
		let imageView = UIImageView()
		return imageView
	}()
	
	override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
		super.init(style: style, reuseIdentifier: reuseIdentifier)
		accessoryView = companyLogoImageView
		contentView.addSubview(stackView)
		stackView.pinToSuperview(inset: 15)
	}

		locationLabel.text = job.location
		fullTimeLabel.text = job.type
		postedLabel.text = job.created_at
		guard let logo = job.company_logo, let logoURL = URL(string: logo) else { return }
		companyLogoImageView.af_setImage(withURL: logoURL)
	}

}
