About h->a( "https://kitsu.io/users/{$data['slug']}", $data['name'], [ 'title' => 'View profile on Kitsu' ]) ?>

Favorites

component->tabs('user-favorites', $data['favorites'], static function ($items, $type) use ($_) { if ($type === 'character') { uasort($items, fn ($a, $b) => $a['names']['canonical'] <=> $b['names']['canonical']); } else { uasort($items, fn ($a, $b) => $a['titles']['canonical'] <=> $b['titles']['canonical']); } $rendered = array_map(fn ($item) => match ($type) { 'character' => $_->component->character( $item['names']['canonical'], $_->urlFromRoute('character', ['slug' => $item['slug']]), $_->h->img(Kitsu::getImage($item)) ), default => $_->component->media( array_merge( [$item['titles']['canonical']], Kitsu::getFilteredTitles($item['titles']), ), $_->urlFromRoute("{$type}.details", ['id' => $item['slug']]), $_->h->img(Kitsu::getPosterImage($item), ['width' => 220]), ), }, $items); return implode('', array_map('mb_trim', $rendered)); }, 'content full-width media-wrap') ?>