2023-09-12 07:25:44 +00:00
|
|
|
import React from 'react';
|
2023-09-08 11:28:50 +03:00
|
|
|
|
2023-09-12 07:25:44 +00:00
|
|
|
import { AdminNav } from './nav';
|
2023-09-08 11:28:50 +03:00
|
|
|
|
2023-09-12 07:25:44 +00:00
|
|
|
export type AdminSectionLayoutProps = {
|
2023-09-08 11:28:50 +03:00
|
|
|
children: React.ReactNode;
|
|
|
|
|
};
|
|
|
|
|
|
2023-09-12 07:25:44 +00:00
|
|
|
export default function AdminSectionLayout({ children }: AdminSectionLayoutProps) {
|
|
|
|
|
return (
|
|
|
|
|
<div className="mx-auto mt-16 w-full max-w-screen-xl px-4 md:px-8">
|
|
|
|
|
<div className="grid grid-cols-12 gap-x-8 md:mt-8">
|
|
|
|
|
<AdminNav className="col-span-12 md:col-span-3 md:flex" />
|
2023-09-08 11:28:50 +03:00
|
|
|
|
2023-09-12 07:25:44 +00:00
|
|
|
<div className="col-span-12 mt-12 md:col-span-9 md:mt-0">{children}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
2023-09-08 11:28:50 +03:00
|
|
|
}
|