<?php

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

use Prodigy\Includes\Prodigy_User;

?>

<div class="impersonation-frame user-logout-js">
	<div class="impersonation-frame__wrap" aria-hidden="true"></div>
	<div class="impersonation-frame__badge">
		<p class="impersonation-frame__badge-text">
			<?php esc_attr_e( 'You are impersonating', 'prodigy-commerce' ); ?>
			<span><?php echo esc_html( sanitize_email( wp_unslash( $_COOKIE[ Prodigy_User::USER_INFO_COOKIE_EMAIL ] ?? '' ) ) ); ?></span>
		</p>
		<button class="impersonation-frame__button" type="button">
			<?php esc_attr_e( 'Stop', 'prodigy-commerce' ); ?>
		</button>
	</div>
</div>