Files
DataStack/app/vcon/layout.tsx
T
Team Dark Devil fde2c86b1e refactor: improve auth defaults, update UI, and docs
- Provide fallback values for auth environment variables
- Refine global CSS styles and typography
- Update application metadata descriptions
- Add toast error handling to clients page
- Formalize phase implementation guidelines in AGENTS.md
2026-11-16 21:58:18 +06:00

13 lines
423 B
TypeScript

'use client';
import { MainLayout } from '@/components/layout/MainLayout';
import { usePathname } from 'next/navigation';
import React from 'react';
export default function VconLayout({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
if (pathname === '/vcon/login' || pathname === '/vcon/setup') return <>{children}</>;
return <MainLayout showSidebar={true}>{children}</MainLayout>;
}