import { AppShell as MantineAppShell, NavLink, Text } from "@mantine/core"; import type { FC, ReactNode } from "react"; import { useTranslation } from "react-i18next"; import { Outlet, NavLink as RouterNavLink, useLocation } from "react-router"; type AppShellProps = { contentAboveOutlet?: ReactNode; }; const AppShell: FC = (props) => { const { contentAboveOutlet } = props; const { t } = useTranslation(); const { pathname } = useLocation(); const items = [ { to: "/accounts", label: t("navigation.accounts") }, { to: "/settings", label: t("navigation.settings") }, ]; return ( {t("appName")} {items.map((item) => ( ))} {contentAboveOutlet} ); }; export { AppShell };