feat: admin only bar items
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import type { FC } from "react";
|
||||
import { barItems } from "../tabs";
|
||||
import { useBarItems } from "../tabs";
|
||||
|
||||
export interface ISidebarProps {
|
||||
activeTab: string;
|
||||
@ -7,6 +7,8 @@ export interface ISidebarProps {
|
||||
}
|
||||
|
||||
const Sidebar: FC<ISidebarProps> = ({ activeTab, onChangeTab }) => {
|
||||
const barItems = useBarItems();
|
||||
|
||||
return (
|
||||
<div className="hidden sm:flex flex-col gap-2 items-stretch min-w-80 w-80 p-5 pt-18 min-h-screen select-none bg-white/65 dark:bg-black/65 shadow-lg shadow-gray-300 dark:shadow-gray-700">
|
||||
{barItems.map((item) => (
|
||||
|
Reference in New Issue
Block a user