<?php
namespace IcreatorCookieConsent;

if (!defined('ABSPATH')) exit;

class Features {
    private const PRO_FEATURES = [
        'banner_positions',
        'advanced_design',
        'overlays',
        'custom_css',
        'advanced_pixels',
        'script_manager',
        'consent_logs',
        'external_logs',
        'tools',
        'consent_gate',
    ];

    public static function is_free_build(): bool {
        return true;
    }

    public static function has(string $feature): bool {
        if (!in_array($feature, self::PRO_FEATURES, true)) {
            return true;
        }

        return false;
    }

    public static function upgrade_url(): string {
        if (function_exists('iccb_fs')) {
            return iccb_fs()->get_upgrade_url();
        }

        return 'https://consentpress.com';
    }
}
