galerie/web/www/app.tsx

21 lines
937 B
TypeScript

/*
Copyright 2023 0xf8.dev@proton.me
This file is part of Galerie
Galerie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Galerie is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Galerie. If not, see <https://www.gnu.org/licenses/>.
*/
import ReactDOM from "react-dom/client";
import React from "react";
import { navbar } from "./navbar";
export default function App(Root) {
const root = ReactDOM.createRoot(document.querySelector("root"));
root.render(<>{ navbar() } { Root() }</>);
return root;
}