[upgrade] Abstract components on the page into subcomponents

This commit is contained in:
PrinOrange
2024-09-28 00:18:55 +08:00
parent f00a79fcf3
commit 959e513dcd
31 changed files with 508 additions and 374 deletions

View File

@@ -0,0 +1,12 @@
import { twMerge } from "tailwind-merge";
export const PageTitle = (props: {
children?: React.ReactNode;
classNames?: string;
}) => {
return (
<h2 className={twMerge("caption-font my-5 flex select-none justify-center font-bold text-2xl", props.classNames)}>
{props.children}
</h2>
);
};