Files
ThreadNet-Web/src/components/views/auth/AuthBody.tsx
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
586 B
TypeScript
Raw Normal View History

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
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
2024-09-09 14:57:16 +01:00
Please see LICENSE files in the repository root for full details.
2019-01-22 19:28:23 -06:00
*/
import classNames from "classnames";
import React, { type JSX, type PropsWithChildren } from "react";
2021-10-22 17:23:32 -05:00
interface Props {
2022-11-25 08:49:11 +01:00
className?: string;
flex?: boolean;
}
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
}