import React from "react";
import {
AccountCircle as AccountCircleIcon,
Code as CodeIcon,
Create as CreateIcon,
Logout as LogoutIcon,
ManageAccounts as ManageAccountsIcon,
Telegram as TelegramIcon,
} from "@mui/icons-material";
import { List, ListItemButton, ListItemIcon, ListItemText, Paper } from "@mui/material";
import { Link } from "../lib/link";
import MetahkgIcon from "./logo";
import MetahkgLogo from "./logo";
import { wholePath } from "../lib/common";
import { useUser } from "./ContextProvider";
/**
* just a template for large screens if there's no content
* e.g. /category/:id, in which there's no main content but only the menu
*/
export default function Template() {
/* It's a list of objects. */
const links: { icon: JSX.Element; title: string; link: string }[] = [
{
icon: ,
title: "Create thread",
link: "/create",
},
{
icon: ,
title: "Telegram group",
link: "https://t.me/+WbB7PyRovUY1ZDFl",
},
{
icon: ,
title: "Source code",
link: "https://gitlab.com/metahkg/metahkg",
},
];
const [user] = useUser();
return (
Metahkg
Support Ukraine
{user ? : }
{user ? "Logout" : "Login / Register"}
{user && (
{user?.name}
)}
{links.map((link, index) => (
{link.icon}
{link.title}
))}
);
}