mirror of https://github.com/vector-im/riot-web
25 lines
733 B
TypeScript
25 lines
733 B
TypeScript
/*
|
|
Copyright 2019-2024 New Vector Ltd.
|
|
Copyright 2015, 2016 OpenMarket 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 * as React from "react";
|
|
|
|
import SdkConfig from "../../../SdkConfig";
|
|
|
|
export default class VectorAuthHeaderLogo extends React.PureComponent {
|
|
public render(): React.ReactElement {
|
|
const brandingConfig = SdkConfig.getObject("branding");
|
|
const logoUrl = brandingConfig?.get("auth_header_logo_url") ?? "themes/element/img/logos/element-logo.svg";
|
|
|
|
return (
|
|
<aside className="mx_AuthHeaderLogo">
|
|
<img src={logoUrl} alt="Element" />
|
|
</aside>
|
|
);
|
|
}
|
|
}
|