refactor(splash): encapsulate auth logic in SplashButton for SSR support
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
"use client";
|
||||
/**
|
||||
* 500px 移动端 Shell
|
||||
* 500px 移动端 Shell(Server Component)
|
||||
*
|
||||
* 原始 Dart: 每个屏幕的 `Scaffold → SafeArea → Center → ConstrainedBox(maxWidth: 500)` 模式
|
||||
* (`Breakpoints.mobileMaxWidth = 500.0`)。
|
||||
*
|
||||
* 集中封装,调用方仅需 `<MobileShell>{...}</MobileShell>` 即可获得统一的移动端宽度约束。
|
||||
*
|
||||
* 本组件无 hooks,可作为 Server Component 直接 SSR。
|
||||
*/
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user