mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-12 02:35:42 +00:00
Initial commit
This commit is contained in:
24
assets/js/hooks/Mapper/components/layout/Layout.tsx
Normal file
24
assets/js/hooks/Mapper/components/layout/Layout.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
interface LayoutProps {
|
||||
map: ReactNode;
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
const Layout = ({ map, children }: LayoutProps) => {
|
||||
return (
|
||||
<>
|
||||
<section className="flex-1 mb-0 min-h-full min-w-full w-full h-full">
|
||||
<div className="flex flex-col lg:flex-row">
|
||||
<div className="lg:flex-1 min-h-0 min-w-0 ">
|
||||
<div className="flex h-[calc(100vh)]">{map}</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{children}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
// eslint-disable-next-line react/display-name
|
||||
export default Layout;
|
||||
Reference in New Issue
Block a user