Files
ThreadNet-Web/src/components/views/elements/DialPadBackspaceButton.tsx
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
941 B
TypeScript
Raw Normal View History

/*
2024-09-09 14:57:16 +01:00
Copyright 2024 New Vector Ltd.
Copyright 2021 The Matrix.org Foundation C.I.C.
2024-09-09 14:57:16 +01:00
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
Please see LICENSE files in the repository root for full details.
*/
import * as React from "react";
2021-10-22 17:23:32 -05:00
2022-01-04 08:57:46 +00:00
import { _t } from "../../../languageHandler";
import AccessibleButton, { ButtonEvent } from "./AccessibleButton";
interface IProps {
// Callback for when the button is pressed
onBackspacePress: (ev: ButtonEvent) => void;
}
export default class DialPadBackspaceButton extends React.PureComponent<IProps> {
public render(): React.ReactNode {
return (
<div className="mx_DialPadBackspaceButtonWrapper">
2022-01-04 08:57:46 +00:00
<AccessibleButton
className="mx_DialPadBackspaceButton"
onClick={this.props.onBackspacePress}
aria-label={_t("keyboard|backspace")}
2022-01-04 08:57:46 +00:00
/>
</div>
);
}
}