2019-01-22 21:51:42 -06:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2019-2024 New Vector Ltd.
|
2024-11-05 15:41:00 +00:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2019-01-22 21:51:42 -06:00
|
|
|
|
2025-01-06 11:18:54 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
2024-09-09 14:57:16 +01:00
|
|
|
Please see LICENSE files in the repository root for full details.
|
2019-01-22 21:51:42 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import React from "react";
|
2021-10-22 17:23:32 -05:00
|
|
|
|
2024-11-05 15:41:00 +00:00
|
|
|
import SdkConfig from "../../../SdkConfig";
|
|
|
|
|
|
2019-01-22 21:51:42 -06:00
|
|
|
export default class AuthHeaderLogo extends React.PureComponent {
|
2024-11-05 15:41:00 +00:00
|
|
|
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>
|
|
|
|
|
);
|
2019-01-22 21:51:42 -06:00
|
|
|
}
|
|
|
|
|
}
|