<?php

/**
 * Enqueue class for the Custom Product Badge for WooCommerce plugin.
 */

namespace CPBW\Frontend;

class Enqueue {

    /**
     * Initialize the class
     * @return void
     */
    public function __construct() {
        add_action('wp_enqueue_scripts', [$this, 'frontend_script'], 10, 1);
    }

    /**
     * Enqueue styles and scripts on the frontend.
     *
     * @return void
     */
    public function frontend_script() {
        // Enqueue the CSS file.
        wp_enqueue_style('cpbw-common-style', CPBW_ASSETS . '/src/styles/cpbw-common-style.css', [], '1.0.0', 'all');
        // Enqueue the JavaScript file.
        wp_enqueue_script('cpbw-common-script', CPBW_ASSETS . '/src/js/cpbw-common-script.js', [], '1.0.0', true);
    }

}