pay-admin/src/pages/index.tsx

46 lines
1.0 KiB
TypeScript
Raw Normal View History

import { useMyState } from '@/common';
import QuickActionsGrid from './components/QuickActionsGrid';
import StatisticsPlaceholder from './components/StatisticsPlaceholder';
export default function Index() {
const { snap } = useMyState();
const username = snap.session?.user?.username || '用户';
return (
2026-04-16 20:28:45 +08:00
<div>
{/* 欢迎语区域 */}
<div
style={{
marginBottom: '32px',
}}
>
<h1
style={{
fontSize: '32px',
fontWeight: 600,
color: '#262626',
marginBottom: '12px',
}}
>
{username}
</h1>
<p
style={{
fontSize: '16px',
color: '#8c8c8c',
marginBottom: 0,
}}
>
</p>
</div>
{/* 快捷操作区域 */}
<QuickActionsGrid />
{/* 统计数据预留区域 */}
<StatisticsPlaceholder />
</div>
);
2025-06-27 16:42:11 +08:00
}