signal-desktop/ts/components/conversation/GroupV2PendingApprovalActions.tsx

34 lines
944 B
TypeScript
Raw Normal View History

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
import type { LocalizerType } from '../../types/Util';
export type PropsType = {
i18n: LocalizerType;
onCancelJoinRequest: () => unknown;
};
2022-11-18 00:45:19 +00:00
export function GroupV2PendingApprovalActions({
i18n,
onCancelJoinRequest,
2022-11-18 00:45:19 +00:00
}: PropsType): JSX.Element {
return (
<div className="module-group-v2-pending-approval-actions">
<p className="module-group-v2-pending-approval-actions__message">
{i18n('GroupV2--join--requested')}
</p>
<div className="module-group-v2-pending-approval-actions__buttons">
<button
type="button"
onClick={onCancelJoinRequest}
tabIndex={0}
className="module-group-v2-pending-approval-actions__buttons__button"
>
{i18n('GroupV2--join--cancel-request-to-join')}
</button>
</div>
</div>
);
2022-11-18 00:45:19 +00:00
}