import type { FC } from "react"; import { barItems } from "../tabs"; export interface ISidebarProps { activeTab: string; onChangeTab: (tab: string) => void; } const Sidebar: FC = ({ activeTab, onChangeTab }) => { return (
{barItems.map((item) => (
onChangeTab(item.tab)} className={`dark:text-gray-200 transition-colors text-md cursor-pointer p-4 rounded-lg flex flex-row items-center gap-3${ item.tab === activeTab ? " bg-gray-200 dark:bg-gray-900" : "" }`} > {item.icon} {item.title}
))}
); }; export default Sidebar;