matrix-react-sdk
Version:
SDK for matrix.org using React
22 lines (21 loc) • 659 B
TypeScript
import * as React from "react";
import { ButtonEvent } from "../elements/AccessibleButton";
import { XOR } from "../../../@types/common";
export declare const BUTTONS: string[];
export declare const BUTTON_LETTERS: string[];
interface IBaseProps {
onDigitPress: (digit: string, ev: ButtonEvent) => void;
onDeletePress?: (ev: ButtonEvent) => void;
hasDial: boolean;
}
interface IProps extends IBaseProps {
hasDial: false;
}
interface IDialProps extends IBaseProps {
hasDial: true;
onDialPress: () => void;
}
export default class DialPad extends React.PureComponent<XOR<IProps, IDialProps>> {
render(): React.ReactNode;
}
export {};