aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/portal/section.tsx
blob: 455ed07c91f91d31c1efc2b3ec335238a8afe96f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import * as React from 'react';

export interface SectionProps {
    header: React.ReactNode;
    body: React.ReactNode;
}
export const Section = (props: SectionProps) => {
    return (
        <div className="flex flex-column" style={{ height: '100%' }}>
            {props.header}
            <div className="flex-auto">{props.body}</div>
        </div>
    );
};