mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 12:20:20 +01:00
24 lines
671 B
TypeScript
24 lines
671 B
TypeScript
import StartMenu from "components/system/StartMenu";
|
|
import Clock from "components/system/Taskbar/Clock";
|
|
import StartButton from "components/system/Taskbar/StartButton";
|
|
import StyledTaskbar from "components/system/Taskbar/StyledTaskbar";
|
|
import TaskbarEntries from "components/system/Taskbar/TaskbarEntries";
|
|
import { useSession } from "contexts/session";
|
|
|
|
const Taskbar = (): JSX.Element => {
|
|
const { startMenuVisible } = useSession();
|
|
|
|
return (
|
|
<>
|
|
{startMenuVisible && <StartMenu />}
|
|
<StyledTaskbar tabIndex={-1}>
|
|
<StartButton />
|
|
<TaskbarEntries />
|
|
<Clock />
|
|
</StyledTaskbar>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Taskbar;
|