<?php
declare(strict_types=1);

namespace Autogedal\Extend\Block;

use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\View\Element\Template;

class LeanpayBanner extends Template
{
    private ScopeConfigInterface $scopeConfig;

    public function __construct(
        Template\Context $context,
        ScopeConfigInterface $scopeConfig,
        array $data = []
    ) {
        $this->scopeConfig = $scopeConfig;
        parent::__construct($context, $data);
    }

    public function getCheckYourLimitUrl(): string
    {
        return (string) $this->scopeConfig->getValue('payment/leanpay_installment/check_your_limit');
    }

    public function getLogoUrl(): string
    {
        return $this->getViewFileUrl('images/leanpay-logo.svg');
    }
}
