/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import type { ReactNode } from "react"; // plane imports import { cn } from "@plane/utils"; type TPageWrapperProps = { children: ReactNode; header?: { title: string; description: string | ReactNode; actions?: ReactNode; }; customHeader?: ReactNode; size?: "lg" | "md"; }; export const PageWrapper = (props: TPageWrapperProps) => { const { children, header, customHeader, size = "md" } = props; return (
{customHeader ? (
{customHeader}
) : ( header && (
{header.title}
{header.description}
{header.actions &&
{header.actions}
}
) )}
{children}
); };