<?php

namespace SplitPay\Core;

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

class ProFeatures {

	private static array $features = [
		'product_split_pay_save' => 'Product-Level Split Pay',
		'variable_product_save'  => 'Variable Product Split Pay',
		'bulk_editor'            => 'Bulk Editor',
		'transfers_list'         => 'Transfer History',
		'csv_export'             => 'CSV Export',
		'vendor_onboarding'      => 'Vendor Onboarding',
		'product_extras'         => 'Product Extras (PEWC)',
		'delayed_transfers'      => 'Delayed Transfers',
	];

	public static function getFeatures(): array {
		return self::$features;
	}

	public static function getFeatureLabel( string $key ): string {
		return self::$features[ $key ] ?? $key;
	}

	public static function isFeatureAvailable( string $key ): bool {
		return UpgradeCTA::isPremium();
	}
}
