import Foundation
import SunoModelClient

public extension Clip {
    /// Determines if the clip is a preview but the user is a paid user
    /// If that's the case, it means the preview is being unlocked (decoded)
    func isUnlockingPreview(isPaidUser: Bool) -> Bool {
        // Check if the clip is a preview
        let isPreview = type == .preview
        return isPreview && isPaidUser
    }
}
