matrix-react-sdk
Version:
SDK for matrix.org using React
27 lines (26 loc) • 890 B
TypeScript
import React from "react";
import MatrixClientContext from "../../../../../contexts/MatrixClientContext";
interface IProps {
roomId: string;
closeSettingsFn(): void;
}
interface IState {
currentSound: string;
uploadedFile: File | null;
}
export default class NotificationsSettingsTab extends React.Component<IProps, IState> {
private readonly roomProps;
private soundUpload;
static contextType: React.Context<import("matrix-js-sdk/src/client").MatrixClient>;
context: React.ContextType<typeof MatrixClientContext>;
constructor(props: IProps, context: React.ContextType<typeof MatrixClientContext>);
private triggerUploader;
private onSoundUploadChanged;
private onClickSaveSound;
private saveSound;
private clearSound;
private onRoomNotificationChange;
private onOpenSettingsClick;
render(): React.ReactNode;
}
export {};