element-web/src/components/views/auth/VectorAuthHeaderLogo.tsx

33 lines
1.1 KiB
TypeScript
Raw Normal View History

2015-12-01 17:27:23 +01:00
/*
2016-01-07 05:17:56 +01:00
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2019 New Vector Ltd
2015-12-01 17:27:23 +01:00
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
2022-12-09 13:28:29 +01:00
import * as React from "react";
import SdkConfig from "matrix-react-sdk/src/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";
2019-02-11 17:23:22 +01:00
2015-12-01 17:27:23 +01:00
return (
<aside className="mx_AuthHeaderLogo">
2020-07-10 20:09:52 +02:00
<img src={logoUrl} alt="Element" />
</aside>
2015-12-01 17:27:23 +01:00
);
}
}