import type { CSSProperties } from "react";
import { NavLink, Outlet } from "react-router-dom";
const SUB_NAV = [
{ to: "/settings/notifications", label: "Notifications" },
{ to: "/settings/badges", label: "Badges" },
{ to: "/settings/display", label: "Display" },
{ to: "/settings/tags", label: "Tags" },
{ to: "/settings/alert-tickets", label: "Alert tickets" },
{ to: "/settings/names", label: "Names" },
{ to: "/settings/cache", label: "Cache" },
{ to: "/settings/logs", label: "Logs" },
{ to: "/settings/backup", label: "Backup" },
];
export default function Settings() {
return (
<>
Settings
{/* Tabler's default list-group-item padding (1.25rem) is sized for
standalone list cards, not a nav sidebar — at that padding the
first item's text sits ~12px below where the content column's
own heading/button row starts, even though the two boxes
themselves are top-aligned. Tightening just this list-group's
own padding (via its own CSS variable, verified pixel-for-pixel
against the real markup) brings the two back to the same
visual line instead of only the same box height. */}
{SUB_NAV.map((item) => (
`list-group-item list-group-item-action ${isActive ? "active" : ""}`}
>
{item.label}
))}
>
);
}