<?php

declare(strict_types=1);

use Fisharebest\Webtrees\Contracts\UserInterface;
use Fisharebest\Webtrees\Http\RequestHandlers\HomePage;
use Fisharebest\Webtrees\Http\RequestHandlers\Logout;
use Fisharebest\Webtrees\I18N;

/**
 * @var UserInterface $user
 */

?>

<p>
    <?= I18N::translate('You are signed in as %s.', e($user->userName())) ?>
</p>

<p>
    <a href="#" class="btn btn-primary" data-wt-post-url="<?= e(route(Logout::class)) ?>" data-wt-reload-url="<?= e(route(HomePage::class)) ?>">
        <?= /* I18N: A button label. */ I18N::translate('sign out') ?>
    </a>
</p>
