//
//  HintView.swift
//  Muna
//
//  Created by Egor Petrov on 14.09.2020.
//  Copyright © 2020 Abstract. All rights reserved.
//

import Cocoa
import SnapKit

final class HintView: View {
//    let partShorcutView = ShortcutView(item: Preferences.DefaultItems.defaultScreenshotShortcut.item)
    
    let titleLabel = Label(fontStyle: .bold, size: 17)
        .withText("Muna is ready to use!")

//    let closeButton = Button()
//        .withImageName("close", color: .title60Accent)

//    let countDownView = CountDownView()

    override init(frame frameRect: NSRect) {
        super.init(frame: frameRect)

        self.setupInitialLayout()
    }

    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    private func setupInitialLayout() {
        self.addSubview(self.titleLabel)
        self.titleLabel.snp.makeConstraints { make in
            make.leading.equalToSuperview().offset(20)
            make.top.equalToSuperview().offset(12)
            make.bottom.equalToSuperview().inset(12)
            make.trailing.equalToSuperview().inset(20)
        }

//        self.addSubview(self.countDownView)
//        self.countDownView.snp.makeConstraints { make in
//            make.size.equalTo(28)
//            make.centerY.equalToSuperview()
//            make.trailing.equalToSuperview().inset(8)
//            make.leading.equalTo(self.titleLabel.snp.trailing).offset(8)
//        }
//
//        self.addSubview(self.closeButton)
//        self.closeButton.isHidden = true
//        self.closeButton.snp.makeConstraints { make in
//            make.size.equalTo(20)
//            make.center.equalTo(self.countDownView)
//        }
    }
}
