<?php

namespace Components\Ui;

/**
 * WebPreviewer
 *
 * Convenience wrapper for `DevicePreviewer` in `web` mode.
 */
class WebPreviewer
{
    public static function render(array $opts = []): string
    {
        $opts['mode'] = 'web';
        // Enforce web-specific defaults even when callers pass legacy opts.
        $opts['allow_images_toggle'] = false;
        $opts['show_images'] = true;
        $opts['allow_mail_header'] = false;

        return DevicePreviewer::render($opts);
    }
}
