<?php

declare(strict_types=1);

use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\Module\CompactTreeChartModule;

/**
 * @var Individual|null        $individual
 * @var CompactTreeChartModule $module
 */

?>
<?php if ($individual instanceof Individual) : ?>
    <a href="<?= e($module->chartUrl($individual)) ?>" title="<?= strip_tags($module->chartTitle($individual)) ?>">
        <?= view('icons/arrow-right') ?>
    </a>
<?php else : ?>
    <?= view('icons/arrow-right') ?>
<?php endif;
