feat: 重构后台品牌工作台基础骨架
This commit is contained in:
1 parent
ac4abc1305
commit
e402ba58d9
4 files changed
+209
-5
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import { Space, Typography } from "antd";
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
export function AdminPageHeader({
|
||||
title,
|
||||
description,
|
||||
extra,
|
||||
}: {
|
||||
title: string;
|
||||
description?: string;
|
||||
extra?: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<Space
|
||||
align="start"
|
||||
style={{ width: "100%", justifyContent: "space-between", marginBottom: 24 }}
|
||||
>
|
||||
<div>
|
||||
<Typography.Title level={2} style={{ margin: 0 }}>
|
||||
{title}
|
||||
</Typography.Title>
|
||||
{description && (
|
||||
<Typography.Paragraph type="secondary" style={{ margin: "8px 0 0" }}>
|
||||
{description}
|
||||
</Typography.Paragraph>
|
||||
)}
|
||||
</div>
|
||||
{extra}
|
||||
</Space>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user