refactor(types): moved the item type to the sidebar to keep it more clean

This commit is contained in:
2025-11-02 16:24:37 -06:00
parent 0b0298423e
commit 5023d4d129

View File

@@ -1,6 +1,6 @@
import { Link } from "@tanstack/react-router";
import { type LucideIcon, Server, Settings, User } from "lucide-react";
import { type UserRoles, userAccess } from "../../lib/authClient";
import { Server, Settings, User } from "lucide-react";
import { userAccess } from "../../lib/authClient";
import {
SidebarGroup,
SidebarGroupContent,
@@ -9,15 +9,8 @@ import {
SidebarMenuButton,
SidebarMenuItem,
} from "../ui/sidebar";
import type { Items } from "./SideBarNav";
type Items = {
title: string;
url: string;
icon: LucideIcon;
role: UserRoles["role"][];
module: string;
active: boolean;
};
export default function Admin() {
const items: Items[] = [
{