import { AuthBackground } from '@/components/AuthBackground'; import { AuthCard } from '@/components/AuthCard'; import { ThemeColor } from '@/components/Layout'; import { Footer } from '@/components/Layout/Footer'; import { MainIcon } from '@/components/MainIcon'; import { Box, Grid } from '@mui/material'; import React, { PropsWithChildren } from 'react'; type AuthWrapperProps = PropsWithChildren<{ version: string; name: string; copy?: string; background?: React.ReactNode | React.ComponentType; logo?: React.ReactNode; footer?: boolean; }>; function AuthWrapper({ version, name, copy, children, logo, background = AuthBackground, footer = true }: AuthWrapperProps) { return ( {React.isValidElement(background) ? background : React.createElement(background as any)} {logo ? logo : } {children} {footer ? (