2019-01-22 19:28:23 -06:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2019-2024 New Vector Ltd.
|
2019-01-22 19:28:23 -06:00
|
|
|
|
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.
|
2019-01-22 19:28:23 -06:00
|
|
|
*/
|
|
|
|
|
|
2022-05-13 16:10:22 +02:00
|
|
|
import classNames from "classnames";
|
|
|
|
|
import React, { PropsWithChildren } from "react";
|
2021-10-22 17:23:32 -05:00
|
|
|
|
2022-05-13 16:10:22 +02:00
|
|
|
interface Props {
|
2022-11-25 08:49:11 +01:00
|
|
|
className?: string;
|
2022-05-13 16:10:22 +02:00
|
|
|
flex?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-12 13:25:14 +00:00
|
|
|
export default function AuthBody({ flex, className, children }: PropsWithChildren<Props>): JSX.Element {
|
2022-11-25 08:49:11 +01:00
|
|
|
return <main className={classNames("mx_AuthBody", className, { mx_AuthBody_flex: flex })}>{children}</main>;
|
2019-01-22 19:28:23 -06:00
|
|
|
}
|