feat: 添加管理员钱包相关API和更新模块结构

This commit is contained in:
2026-05-09 15:22:27 +08:00
parent 38d40f3a8b
commit 4ace3151e6
14 changed files with 930 additions and 59 deletions

View File

@@ -3,29 +3,11 @@ import type { ReactNode } from "react";
import { cn } from "@/lib/utils";
type ModuleScaffoldProps = {
title: string;
description: string;
children?: ReactNode;
className?: string;
};
export function ModuleScaffold({
title,
description,
children,
className,
}: ModuleScaffoldProps) {
return (
<div className={cn("mx-auto max-w-5xl", className)}>
<header className="border-b border-black/10 pb-6 dark:border-white/10">
<h1 className="text-2xl font-semibold tracking-tight text-foreground">
{title}
</h1>
<p className="mt-2 max-w-2xl text-sm leading-6 text-zinc-600 dark:text-zinc-400">
{description}
</p>
</header>
{children !== undefined ? <div className="mt-10">{children}</div> : null}
</div>
);
/** 内容区容器;模块标题由侧栏导航体现,此处不再重复大标题与说明。 */
export function ModuleScaffold({ children, className }: ModuleScaffoldProps) {
return <div className={cn("mx-auto max-w-5xl", className)}>{children}</div>;
}