mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-29 21:25:43 +00:00
22 lines
545 B
TypeScript
22 lines
545 B
TypeScript
import { useAppContext } from "@/context/app-context";
|
|
import { LanguageSelector } from "../language/language";
|
|
import { Outlet } from "react-router";
|
|
|
|
export const Layout = () => {
|
|
const { backgroundImage } = useAppContext();
|
|
|
|
return (
|
|
<div
|
|
className="relative flex flex-col justify-center items-center min-h-svh"
|
|
style={{
|
|
backgroundImage: `url(${backgroundImage})`,
|
|
backgroundSize: "cover",
|
|
backgroundPosition: "center",
|
|
}}
|
|
>
|
|
<LanguageSelector />
|
|
<Outlet />
|
|
</div>
|
|
);
|
|
};
|