import AppKit
import Foundation

enum BearWaveAssets {
    static func imageURL(named name: String, extension fileExtension: String = "png") -> URL? {
        Bundle.module.url(forResource: name, withExtension: fileExtension)
    }

    static func image(named name: String, extension fileExtension: String = "png") -> NSImage? {
        guard let url = imageURL(named: name, extension: fileExtension) else { return nil }
        return NSImage(contentsOf: url)
    }
}
