* Prefer wrapped Compound React icon assets Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Add eslint rule for CDT svg imports Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix height Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
25 lines
639 B
TypeScript
25 lines
639 B
TypeScript
/*
|
|
* Copyright 2024 New Vector Ltd.
|
|
*
|
|
* 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 PinIcon from "@vector-im/compound-design-tokens/assets/web/icons/pin-solid";
|
|
|
|
import { _t } from "../../../languageHandler.tsx";
|
|
|
|
/**
|
|
* A badge to indicate that a message is pinned.
|
|
*/
|
|
export function PinnedMessageBadge(): JSX.Element {
|
|
return (
|
|
<div className="mx_PinnedMessageBadge">
|
|
<PinIcon width="16px" height="16px" />
|
|
{_t("room|pinned_message_badge")}
|
|
</div>
|
|
);
|
|
}
|