import { Container, Group, Skeleton, Stack } from "@mantine/core";
import type { FC, PropsWithChildren } from "react";
import { Suspense } from "react";
import { useTranslation } from "react-i18next";
import { RouteTransition } from "./RouteTransition";
type RouteSkeletonVariant = "auth" | "content" | "shell";
type LazyPageProps = PropsWithChildren<{ variant: RouteSkeletonVariant }>;
const RouteSkeleton: FC<{ variant: RouteSkeletonVariant }> = (props) => {
const { variant } = props;
const { t } = useTranslation();
if (variant === "auth")
return (
);
if (variant === "shell")
return (
);
return (
);
};
const LazyPage: FC = (props) => {
const { children, variant } = props;
return (
}>
{variant === "shell" ? (
children
) : (
{children}
)}
);
};
export { LazyPage, RouteSkeleton };