aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/settings/sidebar/ModileSidebar.tsx
blob: cbed9ef99c71a68b870f7e3a7fa0a6dd4f30565b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import MobileSidebarItem from "@/components/shared/sidebar/ModileSidebarItem";
import { useTranslation } from "@/lib/i18n/server";

import { settingsSidebarItems } from "./items";

export default async function MobileSidebar() {
  const { t } = await useTranslation();
  return (
    <aside className="w-full">
      <ul className="flex justify-between space-x-2 border-b-black px-5 py-2 pt-5">
        {settingsSidebarItems(t).map((item) => (
          <MobileSidebarItem
            key={item.name}
            logo={item.icon}
            path={item.path}
          />
        ))}
      </ul>
    </aside>
  );
}