feat: 本次提交更新内容如下

搜索功能植入完成
This commit is contained in:
2025-07-16 16:29:49 +08:00
parent e1e54b5666
commit 778b44a7a0
5 changed files with 550 additions and 419 deletions

View File

@@ -1,4 +1,4 @@
import React from 'react';
import React from "react";
interface LayoutProps {
loading?: boolean;
@@ -7,29 +7,19 @@ interface LayoutProps {
footer?: React.ReactNode;
}
const Layout: React.FC<LayoutProps> = ({
loading,
children,
header,
footer
const Layout: React.FC<LayoutProps> = ({
loading,
children,
header,
footer,
}) => {
return (
<div className="container">
{header && (
<header>
{header}
</header>
)}
<main>
{children}
</main>
{footer && (
<footer>
{footer}
</footer>
)}
{header && <header>{header}</header>}
<main className="bg-gray-50">{children}</main>
{footer && <footer>{footer}</footer>}
</div>
);
};
export default Layout;
export default Layout;