refactor: rebuild desktop app with Tauri

This commit is contained in:
leookun
2026-08-24 02:49:00 +08:00
parent a3ec2a0dfc
commit 4053a7fb20
808 changed files with 87359 additions and 181491 deletions
@@ -0,0 +1,18 @@
import type { ElementType, ReactNode } from "react";
import styles from "./PageLayout.module.scss";
type PageLayoutProps = {
as?: ElementType;
className?: string;
header?: ReactNode;
footer?: ReactNode;
children: ReactNode;
};
export function PageLayout({ as: Component = "div", className, header, footer, children }: PageLayoutProps) {
return <Component className={[styles.root, className].filter(Boolean).join(" ")}>
{header && <div className={styles.header}>{header}</div>}
<div className={styles.body}>{children}</div>
{footer && <div className={styles.footer}>{footer}</div>}
</Component>;
}