25 lines
1.0 KiB
TypeScript
25 lines
1.0 KiB
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 React from "react";
|
|
|
|
function link(src, title, icon) {
|
|
return <li><i className={ "fa-solid " + icon}></i><a href={src}>{title}</a></li>
|
|
}
|
|
|
|
export function navbar() {
|
|
return <div id="navbar">
|
|
<ul>
|
|
{ link("/index.html", "Home", "fa-house") }
|
|
{ link("/gallery.html", "Gallery", "fa-images") }
|
|
{ link("/settings.html", "Settings", "fa-wrench") }
|
|
</ul>
|
|
</div>
|
|
} |