import ComponentLibrary
import Localization
import SwiftUI

public extension BrandedStackAlert.Configuration {
    static func remixDownloadWarning(
        primaryAction: @escaping () -> Void,
        secondaryAction: @escaping () -> Void
    ) -> Self {
        Self(
            title: L10n.FeatureRemix.alertTitle,
            icon: Image.Icon.remix.resizable(),
            detail: L10n.FeatureRemix.alertDetail("https://suno.com/terms"),
            primaryButton: .init(label: L10n.FeatureRemix.alertButtonYes, action: primaryAction, isProminent: true),
            secondaryButton: .init(label: L10n.FeatureRemix.alertButtonNo, action: secondaryAction)
        )
    }
}
