saleor-dashboard/src/components/Layouts/List/Root.tsx

22 lines
493 B
TypeScript
Raw Normal View History

2023-02-28 09:33:16 +00:00
import { contentMaxWidth } from "@dashboard/components/AppLayout/consts";
import { Box } from "@saleor/macaw-ui/next";
import React from "react";
interface ListPageLayoutProps {
children: React.ReactNode;
hasSaveBar?: boolean;
hasTopNav?: boolean;
}
export const ListPageLayout: React.FC<ListPageLayoutProps> = ({ children }) => (
<Box
display="grid"
margin="auto"
gridTemplateColumns={1}
height="100%"
__maxWidth={contentMaxWidth}
>
{children}
</Box>
);