mirror of
https://github.com/colanode/colanode.git
synced 2025-12-16 19:57:46 +01:00
18 lines
470 B
TypeScript
18 lines
470 B
TypeScript
import { Outlet } from '@tanstack/react-router';
|
|
|
|
import { SidebarDesktop } from '@colanode/ui/components/layouts/sidebars/sidebar-desktop';
|
|
import { useIsMobile } from '@colanode/ui/hooks/use-is-mobile';
|
|
|
|
export const WorkspaceLayout = () => {
|
|
const isMobile = useIsMobile();
|
|
|
|
return (
|
|
<div className="w-full h-full flex">
|
|
{!isMobile && <SidebarDesktop />}
|
|
<section className="min-w-0 flex-1">
|
|
<Outlet />
|
|
</section>
|
|
</div>
|
|
);
|
|
};
|