<?php

namespace Plainwork\UiWordPress\Renderer;

use Plainwork\Http\Request;
use Plainwork\Ui\Component\Table;

class AdminTableRenderer
{
    public function __invoke(Table $el, Request $request, callable $next)
    {
        // return $next($el);
        $el->withAttr('class', 'widefat');
        // $el->withAttr('class', 'fixed');
        // $el->withAttr('class', 'striped');

        return $next($el, $request);
    }
}
