import type { CSSProperties, ReactNode } from "react"; import { Group, Paper, Stack, Text, ThemeIcon, Title } from "@mantine/core"; import { OnboardingBackdrop } from "./onboarding-backdrop"; import { OnboardingWordmark } from "./onboarding-wordmark"; import classes from "./onboarding-studio.module.css"; interface OnboardingAuthShellProps { title: ReactNode; description: ReactNode; icon: ReactNode; children: ReactNode; footer?: ReactNode; appName?: string; showAppName?: boolean; showAppLogo?: boolean; primaryColor?: string; secondaryColor?: string; wordmarkPrimaryColor?: string; wordmarkSecondaryColor?: string; logoImageUrl?: string; backgroundImageUrl?: string; backgroundOverlay?: number; radius?: "xs" | "sm" | "md" | "lg" | "xl"; } export const OnboardingAuthShell = ({ title, description, icon, children, footer, appName, showAppName = false, showAppLogo = false, primaryColor, secondaryColor, wordmarkPrimaryColor, wordmarkSecondaryColor, logoImageUrl, backgroundImageUrl, backgroundOverlay = 0.55, radius = "lg", }: OnboardingAuthShellProps) => (
{backgroundImageUrl ? (
) : null}
{showAppName || showAppLogo ? (
) : null} {icon} {title} {description} {children} {footer ? ( {footer} ) : null}
);