<?php
/**
 * Shared admin SVG icons.
 *
 * @package WP_PowerSuite\Admin
 */

namespace WP_PowerSuite\Admin;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Inline SVG icons for WP PowerSuite admin UI.
 */
final class AdminIcons {

	/**
	 * Refresh icon for primary admin buttons (uses currentColor).
	 *
	 * @param int $size Icon width/height in pixels.
	 */
	public static function refresh_svg( int $size = 16 ): string {
		return sprintf(
			'<svg class="wp-powersuite-refresh-icon" width="%1$d" height="%1$d" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><path d="M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/></svg>',
			$size
		);
	}
}
