several
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { HouseIcon, RankingIcon, ShieldIcon, TrophyIcon, UserCircleIcon } from "@phosphor-icons/react";
|
||||
import { useMemo } from "react";
|
||||
|
||||
export const useLinks = (userId: number, roles: string[]) =>
|
||||
export const useLinks = (userId: string | undefined, roles: string[]) =>
|
||||
useMemo(() => {
|
||||
if (!userId) throw new Error("userId is undefined")
|
||||
const links = [
|
||||
{
|
||||
label: 'Home',
|
||||
|
||||
Reference in New Issue
Block a user