// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

import { route } from 'laroute';

export default function homeLinks(active: string) {
  return [
    {
      active: active === 'home@index',
      title: osu.trans('home.user.title'),
      url: route('home'),
    },
    {
      active: active === 'friends@index',
      title: osu.trans('friends.title_compact'),
      url: route('friends.index'),
    },
    {
      active: active === 'follows@index',
      title: osu.trans('follows.index.title_compact'),
      url: route('follows.index', { subtype: 'comment' }),
    },
    {
      active: active === 'account@edit',
      title: osu.trans('accounts.edit.title_compact'),
      url: route('account.edit'),
    },
  ];
}

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

import { route } from 'laroute';

export default function homeLinks(active: string) {
  return [
    {
      active: active === 'home@index',
      title: osu.trans('home.user.title'),
      url: route('home'),
    },
    {
      active: active === 'friends@index',
      title: osu.trans('friends.title_compact'),
      url: route('friends.index'),
    },
    {
      active: active === 'follows@index',
      title: osu.trans('follows.index.title_compact'),
      url: route('follows.index', { subtype: 'forum_topic' }),
    },
    {
      active: active === 'account@edit',
      title: osu.trans('accounts.edit.title_compact'),
      url: route('account.edit'),
    },
  ];
}

Use subtype that actually exists
Use subtype that actually exists
