[upgrade] Abstract components on the page into subcomponents
This commit is contained in:
12
components/utils/PageTitle.tsx
Normal file
12
components/utils/PageTitle.tsx
Normal 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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user