scoresaber-reloaded-v2/src/components/Container.tsx
Liam 1ff7c246c3
All checks were successful
deploy / deploy (push) Successful in 2m11s
added local score fetching
2023-10-22 02:17:21 +01:00

23 lines
580 B
TypeScript

import { ToastContainer } from "react-toastify";
import Footer from "./Footer";
import Navbar from "./Navbar";
export default function Container({ children }: { children: React.ReactNode }) {
return (
<>
<ToastContainer
className="z-50"
position="top-right"
theme="dark"
pauseOnFocusLoss={false}
/>
<div className="m-auto flex h-screen min-h-full flex-col items-center opacity-90 md:max-w-[1200px]">
<Navbar />
<div className="w-full flex-1">{children}</div>
<Footer />
</div>
</>
);
}