// Path: Frontend/src/components/shell/TopBar/TopBar.tsx import { For, type JSX } from "solid-js"; import type { Theme } from "../../../theme/runtime"; import { topBarActions } from "../data/shell.data"; import { DepartmentSelector } from "../DepartmentSelector/DepartmentSelector"; import { NotificationsNav } from "./NotificationsNav"; import { ThemeToggle } from "./ThemeToggle"; import { UserNav } from "./UserNav"; import styles from "./TopBar.module.scss"; type TopBarProps = { theme: Theme; onToggleTheme: VoidFunction; }; export const TopBar = (props: TopBarProps): JSX.Element => { return (
Moku Work
{(item): JSX.Element => { const Icon = item.icon; return ( ); }}
); };