Skip to content

Commit

Permalink
Add a body layout component
Browse files Browse the repository at this point in the history
  • Loading branch information
ciremusyoka committed May 8, 2024
1 parent f101b47 commit 55e412b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/react-utils/src/components/BodyLayout/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React, { ReactNode } from 'react';
import { RichPageHeader, RichPageHeaderProps } from '../PageHeaders/RichPageHeader';

export interface BodyLayoutProps {
headerProps: RichPageHeaderProps;
children: ReactNode;
id?: string;
}

export const BodyLayout = (props: BodyLayoutProps) => {
const { headerProps, children } = props;
return (
<div className="details-full-view">
<RichPageHeader {...headerProps} />
<div className="content-body">{children}</div>
</div>
);
};

0 comments on commit 55e412b

Please sign in to comment.