2015-12-01 17:12:38 +01:00
|
|
|
/*
|
2016-01-07 05:17:56 +01:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2019-01-22 01:40:34 +01:00
|
|
|
Copyright 2019 New Vector Ltd
|
2015-12-01 17:12:38 +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 React, { ReactElement } from "react";
|
|
|
|
import SdkConfig from "matrix-react-sdk/src/SdkConfig";
|
2023-08-22 17:32:03 +02:00
|
|
|
|
|
|
|
import { _t } from "../../../languageHandler";
|
2015-12-01 17:12:38 +01:00
|
|
|
|
2022-11-23 17:24:36 +01:00
|
|
|
const VectorAuthFooter = (): ReactElement => {
|
2022-03-18 17:12:44 +01:00
|
|
|
const brandingConfig = SdkConfig.getObject("branding");
|
|
|
|
const links = brandingConfig?.get("auth_footer_links") ?? [
|
2022-12-09 13:28:29 +01:00
|
|
|
{ text: "Blog", url: "https://element.io/blog" },
|
|
|
|
{ text: "Twitter", url: "https://twitter.com/element_hq" },
|
|
|
|
{ text: "GitHub", url: "https://github.com/vector-im/element-web" },
|
2019-08-06 19:22:11 +02:00
|
|
|
];
|
|
|
|
|
2023-05-05 10:08:36 +02:00
|
|
|
const authFooterLinks: JSX.Element[] = [];
|
2019-08-06 19:22:11 +02:00
|
|
|
for (const linkEntry of links) {
|
|
|
|
authFooterLinks.push(
|
2020-02-23 23:14:30 +01:00
|
|
|
<a href={linkEntry.url} key={linkEntry.text} target="_blank" rel="noreferrer noopener">
|
2022-12-09 13:28:29 +01:00
|
|
|
{linkEntry.text}
|
2019-08-06 19:22:11 +02:00
|
|
|
</a>,
|
2015-12-01 17:12:38 +01:00
|
|
|
);
|
2019-08-06 19:22:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
2022-07-28 15:00:34 +02:00
|
|
|
<footer className="mx_AuthFooter" role="contentinfo">
|
2022-12-09 13:28:29 +01:00
|
|
|
{authFooterLinks}
|
|
|
|
<a href="https://matrix.org" target="_blank" rel="noreferrer noopener">
|
2023-09-05 18:17:25 +02:00
|
|
|
{_t("powered_by_matrix")}
|
2022-12-09 13:28:29 +01:00
|
|
|
</a>
|
2022-07-28 15:00:34 +02:00
|
|
|
</footer>
|
2019-08-06 19:22:11 +02:00
|
|
|
);
|
|
|
|
};
|
2019-12-20 02:47:11 +01:00
|
|
|
|
|
|
|
export default VectorAuthFooter;
|