Files
DataStack/app/vcon/layout.tsx
T

12 lines
393 B
TypeScript
Raw Normal View History

2026-10-23 11:43:49 -05:00
'use client';
import { MainLayout } from '@/components/layout/MainLayout';
2026-10-23 19:56:38 -07:00
import { usePathname } from 'next/navigation';
import React from 'react';
2026-10-23 11:43:49 -05:00
export default function VconLayout({ children }: { children: React.ReactNode }) {
2026-10-23 19:56:38 -07:00
const pathname = usePathname();
if (pathname === '/vcon/login') return <>{children}</>;
2026-10-23 11:43:49 -05:00
return <MainLayout showSidebar={true}>{children}</MainLayout>;
}