22 lines
944 B
TypeScript
22 lines
944 B
TypeScript
// * Packages
|
|
import { ReactNode } from "react";
|
|
// * Components shadcn
|
|
import { Card } from "@/components/ui/card";
|
|
// * Other
|
|
import ApplicationLogo from "@/back/Components/ApplicationLogo";
|
|
import AppSettings from "@/back/Components/Layout/AppSettings";
|
|
import { ThemeProvider } from "@/back/providers/ThemeProvider";
|
|
|
|
export default function GuestLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<ThemeProvider defaultTheme="light" storageKey="vite-ui-theme">
|
|
<AppSettings className="container absolute top-0 start-1/2 transform -translate-x-1/2 text-right my-4" />
|
|
<div className="flex min-h-screen flex-col justify-center items-center pt-6">
|
|
<ApplicationLogo />
|
|
<Card className="text-center shadow-md sm:max-w-md sm:rounded-lg bg-secondary w-full mt-6">
|
|
{children}
|
|
</Card>
|
|
</div>
|
|
</ThemeProvider>
|
|
);
|
|
}
|