/* * Copyright 2024 New Vector Ltd. * Copyright 2024 The Matrix.org Foundation C.I.C. * * SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only * Please see LICENSE files in the repository root for full details. */ import React, { JSX } from "react"; import { Button, Text } from "@vector-im/compound-web"; import { MatrixClient } from "matrix-js-sdk/src/matrix"; import { logger } from "matrix-js-sdk/src/logger"; import BaseDialog from "../dialogs/BaseDialog"; import { _t } from "../../../languageHandler"; import PinningUtils from "../../../utils/PinningUtils.ts"; import PosthogTrackers from "../../../PosthogTrackers.ts"; /** * Properties for {@link UnpinAllDialog}. */ interface UnpinAllDialogProps { /* * The matrix client to use. */ matrixClient: MatrixClient; /* * The room ID to unpin all events in. */ roomId: string; /* * Callback for when the dialog is closed. */ onFinished: () => void; } /** * A dialog that asks the user to confirm unpinning all events in a room. */ export function UnpinAllDialog({ matrixClient, roomId, onFinished }: UnpinAllDialogProps): JSX.Element { return ( {_t("right_panel|pinned_messages|unpin_all|content")}
); }