2019-01-22 19:28:23 -06:00
|
|
|
/*
|
|
|
|
|
Copyright 2019 New Vector Ltd
|
|
|
|
|
|
|
|
|
|
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-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;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-25 08:49:11 +01:00
|
|
|
export default function AuthBody({ flex, className, children }: PropsWithChildren<Props>) {
|
|
|
|
|
return <main className={classNames("mx_AuthBody", className, { mx_AuthBody_flex: flex })}>{children}</main>;
|
2019-01-22 19:28:23 -06:00
|
|
|
}
|