
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php
namespace GigaAI;

class Component
{
    public static function make($component, $data = [])
    {
        $component = GIGA_INC_DIR . 'components/' . $component . '.php';
        
        if ( ! empty($data)) {
            extract($data);
        }
        
        if (file_exists($component)) {
            require_once $component;
        }
    }
}