2023-06-26 10:07:12 +00:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import { Grid } from "@mui/material";
|
|
|
|
|
|
|
|
|
|
type LayoutProps = {
|
|
|
|
|
detail: any;
|
|
|
|
|
edit: any;
|
|
|
|
|
params: {
|
|
|
|
|
id: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default function Layout({ detail, edit, params: { id } }: LayoutProps) {
|
|
|
|
|
return (
|
2024-09-09 10:19:36 +02:00
|
|
|
<Grid container spacing={0} sx={{ height: "100%" }} direction="row">
|
|
|
|
|
<Grid item sx={{ height: "100%" }} xs={9}>
|
2023-06-26 10:07:12 +00:00
|
|
|
{detail}
|
|
|
|
|
</Grid>
|
2024-09-09 10:19:36 +02:00
|
|
|
<Grid item xs={3} sx={{ height: "100%" }}>
|
2023-06-26 10:07:12 +00:00
|
|
|
{edit}
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
);
|
|
|
|
|
}
|