<?php

namespace GriffinForms\Admin\Html\Icons;

use GriffinForms\Traits\Singleton;

class InlineIcons extends \GriffinForms\Admin\Html\Format
{
    use Singleton;

    public function plusIcon($class = '') {
        $classAttr = 'gf-icon' . ($class ? ' ' . esc_attr($class) : '');
        return '<svg class="' . esc_attr($classAttr) . '" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14" /></svg>';
    }

    public function trashIcon($class = '') {
        $classAttr = 'gf-icon' . ($class ? ' ' . esc_attr($class) : '');
        return '<svg class="' . esc_attr($classAttr) . '" viewBox="0 0 24 24"><path d="M3 6h18M8 6v12m8-12v12M5 6l1-2h12l1 2" /></svg>';
    }

    public function editIcon($class = '') {
        $classAttr = 'gf-icon' . ($class ? ' ' . esc_attr($class) : '');
        return '<svg class="' . esc_attr($classAttr) . '" viewBox="0 0 24 24"><path d="M4 20h4l11-11-4-4L4 16v4z" /></svg>';
    }

    public function folderIcon($class = '') {
        $classAttr = 'gf-icon' . ($class ? ' ' . esc_attr($class) : '');
        return '<svg class="' . esc_attr($classAttr) . '" viewBox="0 0 24 24"><path d="M3 6h5l2 2h11v11H3z" /></svg>';
    }

    public function messageIcon($class = '') {
        $classAttr = 'gf-icon' . ($class ? ' ' . esc_attr($class) : '');
        return '<svg class="' . esc_attr($classAttr) . '" viewBox="0 0 24 24"><path d="M4 4h16v12H5l-1 4z" /></svg>';
    }

    public function checkIcon($class = '') {
        $classAttr = 'gf-icon' . ($class ? ' ' . esc_attr($class) : '');
        return '<svg class="' . esc_attr($classAttr) . '" viewBox="0 0 24 24"><path d="M5 13l4 4L19 7" /></svg>';
    }

    public function __construct() {

    }
}