pay-admin/src/pages/index.tsx
2026-04-16 20:28:45 +08:00

46 lines
1.0 KiB
TypeScript
Raw 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.

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 (
<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>
);
}