//
//  ConnectSuccessTVC.swift
//  MyTatvaCare
//
//  Created by Nirav Ramani on 07/05/25.
//

import UIKit

class ConnectSuccessTVC: UITableViewCell {
   
    @IBOutlet weak var labelTitle: UILabel!
    @IBOutlet weak var labelDesc: UILabel!
    @IBOutlet weak var labelDate: UILabel!
    
    @IBOutlet weak var parentImageView: UIImageView!
    @IBOutlet weak var shadowImgeView: UIImageView!
    
    
    @IBOutlet weak var imageWidthConstraint: NSLayoutConstraint!
    @IBOutlet weak var imageHeightConstraint: NSLayoutConstraint!
    
    @IBOutlet var transmitter_shadow: UIImageView!
    @IBOutlet var transmitter_image: UIImageView!
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        transmitter_shadow.image = loadImage(named: "transmitter_shadow")
        transmitter_image.image = loadImage(named: "transmitter_image")
        // Initialization code
        labelDate.text = "Connected on 12:00PM, 03:00 PM"
        labelDesc.text = "Sno: XXXXXXXXXXXXXXX"
        labelTitle.text = "Transmitter Connected Successfully"
        
        labelDate.font = FontManager.font(ofSize: 14, weight: .regular)
        labelDesc.font = FontManager.font(ofSize: 14, weight: .regular)
        labelTitle.font = FontManager.subtitle
        
        labelDate.textColor = CustomColor.shared.primaryBlack
        labelDesc.textColor = CustomColor.shared.gray
        labelTitle.textColor = CustomColor.shared.primaryBlack
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func setImageForCGM() {
        parentImageView.image = loadImage(named: "CGM_with_Toggle")
        shadowImgeView.isHidden = true
        imageWidthConstraint.constant = 102
        imageHeightConstraint.constant = 122
    }
    
}
