//
//  AppLicensesView.swift
//  SelfieCam
//
//  Created by Matt Bruce on 1/4/26.
//

import SwiftUI
import Bedrock

struct AppLicensesView: View {
    private static let licenses: [License] = [
        License(
            name: "MijickCamera",
            url: "https://github.com/Mijick/Camera",
            licenseType: "Apache 2.0 License",
            description: "Camera framework for SwiftUI. Created by Tomasz Kurylik at Mijick."
        ),
        License(
            name: "RevenueCat",
            url: "https://github.com/RevenueCat/purchases-ios",
            licenseType: "MIT License",
            description: "In-app subscriptions made easy."
        )
    ]
    
    var body: some View {
        LicensesView(
            licenses: Self.licenses,
            backgroundColor: AppSurface.primary,
            cardBackgroundColor: AppSurface.card,
            cardBorderColor: AppBorder.subtle,
            accentColor: AppAccent.primary
        )
    }
}
