mirror of
https://github.com/fleetdm/fleet
synced 2026-05-19 06:58:30 +00:00
24 lines
552 B
TypeScript
24 lines
552 B
TypeScript
import classnames from "classnames";
|
|
import React, { ReactNode } from "react";
|
|
|
|
interface ISidePanelContentProps {
|
|
children: ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
const baseClass = "side-panel-content";
|
|
|
|
/**
|
|
* A component that controls the layout and styling of the side panel region of
|
|
* the application.
|
|
*/
|
|
const SidePanelContent = ({
|
|
children,
|
|
className,
|
|
}: ISidePanelContentProps): JSX.Element => {
|
|
const classes = classnames(baseClass, className);
|
|
|
|
return <div className={classes}>{children}</div>;
|
|
};
|
|
|
|
export default SidePanelContent;
|