refactor(types): moved the item type to the sidebar to keep it more clean
This commit is contained in:
@@ -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[] = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user