mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
consoladating layouts
This commit is contained in:
17
src/components/EditLayout.tsx
Normal file
17
src/components/EditLayout.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { FC, ReactNode } from "react";
|
||||
|
||||
export const EditLayout: FC<{
|
||||
Header: ReactNode;
|
||||
Body: ReactNode;
|
||||
Footer: ReactNode;
|
||||
}> = ({ Header, Body, Footer }) => {
|
||||
return (
|
||||
<div className="h-full flex flex-col align-middle px-1 max-w-[2400px] mx-auto bg-gray-900 rounded">
|
||||
{Header}
|
||||
<div className="min-h-0 flex flex-row w-full flex-grow">
|
||||
{Body}
|
||||
</div>
|
||||
{Footer}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user