package com.atridad.ascently.utils

import android.Manifest
import android.content.Context
import android.content.pm.PackageManager
import androidx.core.content.ContextCompat

object NotificationPermissionUtils {

    /**
     * Check if notification permission is granted
     */
    fun isNotificationPermissionGranted(context: Context): Boolean {
        return ContextCompat.checkSelfPermission(
            context,
            Manifest.permission.POST_NOTIFICATIONS,
        ) == PackageManager.PERMISSION_GRANTED
    }

    /**
     * Check if notification permission should be requested
     */
    fun shouldRequestNotificationPermission(): Boolean {
        return true
    }

    /**
     * Get the notification permission string
     */
    fun getNotificationPermissionString(): String {
        return Manifest.permission.POST_NOTIFICATIONS
    }
}
