diff --git a/frontend/src/components/sidebar/topbar.tsx b/frontend/src/components/sidebar/topbar.tsx
index a76ad75..563decf 100644
--- a/frontend/src/components/sidebar/topbar.tsx
+++ b/frontend/src/components/sidebar/topbar.tsx
@@ -1,35 +1,17 @@
'use client';
-import { ReactNode } from 'react';
-
import { useIsMobile } from '@/hooks/use-is-mobile';
-import {
- desktopSidebarAtom,
- mobileSidebarAtom,
-} from '@/components/sidebar/atoms/sidebar-atom';
-import { useToggleSidebar } from './hooks/use-toggle-sidebar';
-import ButtonWithIcon from '../ui/button-with-icon';
-import { IconLayoutSidebarLeftCollapse } from '@tabler/icons-react';
+import SidebarToggleButton from './sidebar-toggle-button';
export default function TopBar() {
const isMobile = useIsMobile();
- const sidebarStateAtom = isMobile ? mobileSidebarAtom : desktopSidebarAtom;
-
- const toggleSidebar = useToggleSidebar(sidebarStateAtom);
return (
-
+
- }
- variant={'ghost'}
- onClick={toggleSidebar}
- >
+ {!isMobile && }