2022-07-13 15:43:44 +02:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2022-07-13 15:43:44 +02:00
|
|
|
Copyright 2022 The Matrix.org Foundation C.I.C.
|
2024-09-09 14:57:16 +01:00
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2022-07-13 15:43:44 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import classNames from "classnames";
|
|
|
|
|
import React, { DetailedHTMLProps, HTMLAttributes, ReactNode } from "react";
|
|
|
|
|
|
|
|
|
|
interface Props extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
|
|
|
className?: string;
|
|
|
|
|
children?: ReactNode;
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-12 13:25:14 +00:00
|
|
|
export default function SplashPage({ children, className, ...other }: Props): JSX.Element {
|
2022-07-13 15:43:44 +02:00
|
|
|
const classes = classNames(className, "mx_SplashPage");
|
|
|
|
|
return (
|
|
|
|
|
<main {...other} className={classes}>
|
|
|
|
|
{children}
|
|
|
|
|
</main>
|
|
|
|
|
);
|
|
|
|
|
}
|