mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
76cc634a46
* feat: link option in remirror * fix: removed link import from remirror toolbar * refactor: constants folder * refactor: layouts folder structure * fix: issue view context * feat: cycles and modules toggle in settings
31 lines
627 B
TypeScript
31 lines
627 B
TypeScript
// layouts
|
|
import Container from "layouts/container";
|
|
|
|
type Meta = {
|
|
title?: string | null;
|
|
description?: string | null;
|
|
image?: string | null;
|
|
url?: string | null;
|
|
};
|
|
|
|
type Props = {
|
|
meta?: Meta;
|
|
children: React.ReactNode;
|
|
noPadding?: boolean;
|
|
bg?: "primary" | "secondary";
|
|
noHeader?: boolean;
|
|
breadcrumbs?: JSX.Element;
|
|
left?: JSX.Element;
|
|
right?: JSX.Element;
|
|
};
|
|
|
|
const DefaultLayout: React.FC<Props> = ({ meta, children }) => (
|
|
<Container meta={meta}>
|
|
<div className="w-full h-screen overflow-auto bg-gray-50">
|
|
<>{children}</>
|
|
</div>
|
|
</Container>
|
|
);
|
|
|
|
export default DefaultLayout;
|