CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/course/common/flex-panel.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { ReactNode } from "react";
7
8
export function FlexPanel({
9
header,
10
children,
11
}: {
12
header: ReactNode;
13
children: ReactNode;
14
}) {
15
return (
16
<div className={"panel panel-default smc-vfill"}>
17
<div className="panel-heading">{header}</div>
18
<div className="panel-body smc-vfill">{children}</div>
19
</div>
20
);
21
}
22
23