link-stack/apps/link/app/(main)/tickets/[id]/layout.tsx

26 lines
519 B
TypeScript
Raw Normal View History

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