mirror of
https://github.com/Radiquum/YAMPD.git
synced 2025-05-20 15:49:34 +05:00
feat: pack creating
This commit is contained in:
parent
5be021789b
commit
af7b8a6fea
27 changed files with 677 additions and 130 deletions
43
gui/app/App.tsx
Normal file
43
gui/app/App.tsx
Normal file
|
@ -0,0 +1,43 @@
|
|||
"use client";
|
||||
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import { Menu } from "./components/Sidebar";
|
||||
import { Bounce, ToastContainer } from "react-toastify";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
type APPProps = {
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
export const App = ({ children }: APPProps) => {
|
||||
return (
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased flex h-screen overflow-hidden`}
|
||||
>
|
||||
<Menu></Menu>
|
||||
<div className="p-2 overflow-auto w-full">{children}</div>
|
||||
<ToastContainer
|
||||
position="bottom-right"
|
||||
autoClose={5000}
|
||||
hideProgressBar={false}
|
||||
newestOnTop={false}
|
||||
closeOnClick={false}
|
||||
rtl={false}
|
||||
pauseOnFocusLoss
|
||||
draggable
|
||||
pauseOnHover
|
||||
theme="colored"
|
||||
transition={Bounce}
|
||||
/>
|
||||
</body>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue