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 ITopBarProps {
|
||||
activeTab: string;
|
||||
@ -7,6 +7,8 @@ export interface ITopBarProps {
|
||||
}
|
||||
|
||||
const TopBar: FC<ITopBarProps> = ({ activeTab, onChangeTab }) => {
|
||||
const barItems = useBarItems();
|
||||
|
||||
return (
|
||||
<div className="sm:hidden flex w-full overflow-x-auto sm:overflow-x-visible max-w-full min-w-full sm:justify-center sm:space-x-4 no-scrollbar shadow-md shadow-gray-300 dark:shadow-gray-700 dark:bg-black/70 bg-white/70 pt-14">
|
||||
{barItems.map((item) => (
|
||||
|
Reference in New Issue
Block a user