refactor(splash): encapsulate auth logic in SplashButton for SSR support

This commit is contained in:
2026-06-09 18:59:34 +08:00
parent a5d8214650
commit 199a14650e
4 changed files with 55 additions and 58 deletions
+3 -2
View File
@@ -1,11 +1,12 @@
"use client";
/**
* 500px 移动端 Shell
* 500px 移动端 ShellServer Component
*
* 原始 Dart: 每个屏幕的 `Scaffold → SafeArea → Center → ConstrainedBox(maxWidth: 500)` 模式
* `Breakpoints.mobileMaxWidth = 500.0`)。
*
* 集中封装,调用方仅需 `<MobileShell>{...}</MobileShell>` 即可获得统一的移动端宽度约束。
*
* 本组件无 hooks,可作为 Server Component 直接 SSR。
*/
import type { ReactNode } from "react";