import { useAuth } from "@/app/auth/AuthProvider.jsx";
import { PERMISSIONS } from "@/app/permissions";

export function useActivityTemplateAbilities() {
    const { can } = useAuth();

    return {
        canView: can(PERMISSIONS.activityTemplateView),
        canCreate: can(PERMISSIONS.activityTemplateCreate),
        canUpdate: can(PERMISSIONS.activityTemplateUpdate),
        canPublish: can(PERMISSIONS.activityTemplatePublish),
        canDelete: can(PERMISSIONS.activityTemplateDelete),
        canData: can(PERMISSIONS.activityTemplateData),
        canExport: can(PERMISSIONS.activityTemplateExport),
        canRetry: can(PERMISSIONS.activityTemplateRetry),
    };
}
