Files
smart-go/web/components/layout/AuthenticatedLayout.tsx
2026-04-23 18:58:13 +08:00

23 lines
800 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
'use client';
import { AppChrome } from '@/components/layout/AppChrome';
import { RequireAuth } from '@/components/layout/RequireAuth';
import { TabStrip } from '@/components/layout/TabStrip';
/** 登录后带侧栏 + 多标签主工作区布局(dashboard 与 (iam) 等业务页共用) */
export function AuthenticatedLayout({ children }: { children: React.ReactNode }) {
return (
<RequireAuth>
<AppChrome>
<div className="flex min-h-0 w-full min-w-0 flex-1 flex-col overflow-hidden">
<TabStrip />
{/* 与 TabStrip 间距及距底 12pxTailwind p-3 */}
<div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto px-3 pt-3 pb-3">
{children}
</div>
</div>
</AppChrome>
</RequireAuth>
);
}