matrix-react-sdk
Version:
SDK for matrix.org using React
34 lines (33 loc) • 1.07 kB
TypeScript
import React, { ReactNode } from "react";
import { WebPanelResize } from "@matrix-org/analytics-events/types/typescript/WebPanelResize";
import ResizeNotifier from "../../utils/ResizeNotifier";
interface IProps {
resizeNotifier: ResizeNotifier;
collapsedRhs?: boolean;
panel?: JSX.Element;
children: ReactNode;
/**
* A unique identifier for this panel split.
*
* This is appended to the key used to store the panel size in localStorage, allowing the widths of different
* panels to be stored.
*/
sizeKey?: string;
/**
* The size to use for the panel component if one isn't persisted in storage. Defaults to 320.
*/
defaultSize: number;
analyticsRoomType: WebPanelResize["roomType"];
}
export default class MainSplit extends React.Component<IProps> {
static defaultProps: {
defaultSize: number;
};
private onResizeStart;
private onResize;
private get sizeSettingStorageKey();
private onResizeStop;
private loadSidePanelSize;
render(): React.ReactNode;
}
export {};