Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
+30
@@ -0,0 +1,30 @@
|
||||
import { ReactNode } from "react";
|
||||
import BreadcrumbSimple from "../breadcrumbs/BreadcrumbSimple";
|
||||
import { cn } from "~/lib/utils";
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
menu?: {
|
||||
title: string;
|
||||
routePath?: string;
|
||||
}[];
|
||||
buttons?: ReactNode;
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
export default function NewPageLayout({ title, menu, buttons, children, className }: Props) {
|
||||
return (
|
||||
<div className={cn(className, "mx-auto max-w-2xl space-y-3 px-4 pb-6 pt-3 sm:px-6 lg:px-8")}>
|
||||
<div className="space-y-1">
|
||||
<div className="flex items-center justify-between space-x-2">
|
||||
<h1 className="flex flex-1 items-center truncate text-xl font-medium">{title}</h1>
|
||||
<div className="flex items-center space-x-2">{buttons}</div>
|
||||
</div>
|
||||
|
||||
{menu && <BreadcrumbSimple menu={menu} />}
|
||||
</div>
|
||||
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user